summaryrefslogtreecommitdiffstats
path: root/zsteg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'zsteg/PKGBUILD')
-rw-r--r--zsteg/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/zsteg/PKGBUILD b/zsteg/PKGBUILD
new file mode 100644
index 0000000..1a49d80
--- /dev/null
+++ b/zsteg/PKGBUILD
@@ -0,0 +1,22 @@
1# Maintainer: gryffyn <aur at evan dot me>
2
3_gemname=zsteg
4pkgname=$_gemname
5pkgver=0.2.2
6pkgrel=1
7pkgdesc="detect stegano-hidden data in PNG & BMP"
8arch=(any)
9url='https://github.com/zed-0xff/zsteg'
10license=(MIT)
11depends=('ruby' 'ruby-zpng' 'ruby-iostruct')
12options=(!emptydirs)
13source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
14noextract=($_gemname-$pkgver.gem)
15sha256sums=('f3f6bbaf46e5c9f0598aa8b8f457dad890873e4c4e382f6c22e408fd34958ad7')
16
17package() {
18 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
19 install -d -m 755 ${pkgdir}/usr/bin
20 gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
21 rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
22}