From 267a8bcfe86f4f58f6f742b6981d94e1ed7d8bd2 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 9 Aug 2022 14:19:54 +0300 Subject: zsteg: Adopted --- zsteg/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 zsteg/PKGBUILD (limited to 'zsteg/PKGBUILD') diff --git a/zsteg/PKGBUILD b/zsteg/PKGBUILD new file mode 100644 index 0000000..1a49d80 --- /dev/null +++ b/zsteg/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: gryffyn + +_gemname=zsteg +pkgname=$_gemname +pkgver=0.2.2 +pkgrel=1 +pkgdesc="detect stegano-hidden data in PNG & BMP" +arch=(any) +url='https://github.com/zed-0xff/zsteg' +license=(MIT) +depends=('ruby' 'ruby-zpng' 'ruby-iostruct') +options=(!emptydirs) +source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") +noextract=($_gemname-$pkgver.gem) +sha256sums=('f3f6bbaf46e5c9f0598aa8b8f457dad890873e4c4e382f6c22e408fd34958ad7') + +package() { + local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" + install -d -m 755 ${pkgdir}/usr/bin + gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +} -- cgit v1.2.3-70-g09d2