diff options
Diffstat (limited to 'zsteg/PKGBUILD')
-rw-r--r-- | zsteg/PKGBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/zsteg/PKGBUILD b/zsteg/PKGBUILD new file mode 100644 index 0000000..d36cdee --- /dev/null +++ b/zsteg/PKGBUILD | |||
@@ -0,0 +1,57 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: gryffyn <aur at evan dot me> | ||
3 | |||
4 | pkgname=zsteg | ||
5 | pkgver=0.2.10 | ||
6 | pkgrel=1 | ||
7 | pkgdesc="detect stegano-hidden data in PNG & BMP" | ||
8 | arch=(any) | ||
9 | url='https://github.com/zed-0xff/zsteg' | ||
10 | license=(MIT) | ||
11 | depends=('ruby' 'ruby-zpng' 'ruby-iostruct') | ||
12 | source=("${pkgname}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
13 | sha256sums=('fed43cbdeeaae7e25b87e7858dee2321b7a527c7686d062a60e5bb92928ebd3f') | ||
14 | |||
15 | build() { | ||
16 | cd "$pkgname-$pkgver" | ||
17 | gem build "$pkgname.gemspec" | ||
18 | } | ||
19 | |||
20 | package() { | ||
21 | local _gemdir="$(gem env gemdir)" | ||
22 | |||
23 | cd "$pkgname-$pkgver" | ||
24 | gem install \ | ||
25 | --local \ | ||
26 | --ignore-dependencies \ | ||
27 | --no-user-install \ | ||
28 | --install-dir "$pkgdir/$_gemdir" \ | ||
29 | --bindir "$pkgdir/usr/bin" \ | ||
30 | "$pkgname-$pkgver.gem" | ||
31 | |||
32 | # remove unrepreducible files | ||
33 | rm -frv \ | ||
34 | "$pkgdir/$_gemdir/cache/" \ | ||
35 | "$pkgdir/$_gemdir/gems/$pkgname-$pkgver/vendor/" \ | ||
36 | "$pkgdir/$_gemdir/doc/$pkgname-$pkgver/ri/ext/" | ||
37 | |||
38 | find "$pkgdir/$_gemdir/gems/" \ | ||
39 | -type f \ | ||
40 | \( \ | ||
41 | -iname "*.o" -o \ | ||
42 | -iname "*.c" -o \ | ||
43 | -iname "*.so" -o \ | ||
44 | -iname "*.time" -o \ | ||
45 | -iname "gem.build_complete" -o \ | ||
46 | -iname "Makefile" \ | ||
47 | \) \ | ||
48 | -delete | ||
49 | |||
50 | find "$pkgdir/$_gemdir/extensions/" \ | ||
51 | -type f \ | ||
52 | \( \ | ||
53 | -iname "mkmf.log" -o \ | ||
54 | -iname "gem_make.out" \ | ||
55 | \) \ | ||
56 | -delete | ||
57 | } | ||