diff options
author | Yigit Sever | 2022-08-11 18:11:10 +0300 |
---|---|---|
committer | Yigit Sever | 2022-08-11 18:11:10 +0300 |
commit | 90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24 (patch) | |
tree | 48459931aa09db172f76d1aedd2ee13be6aeb136 /zsteg/PKGBUILD | |
parent | e9bccb97acd3dad5630fcc21927eca6da9982925 (diff) | |
download | packages-90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24.tar.gz packages-90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24.tar.bz2 packages-90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24.zip |
zsteg: Update to v0.2.10
Diffstat (limited to 'zsteg/PKGBUILD')
-rw-r--r-- | zsteg/PKGBUILD | 59 |
1 files changed, 47 insertions, 12 deletions
diff --git a/zsteg/PKGBUILD b/zsteg/PKGBUILD index 1a49d80..d36cdee 100644 --- a/zsteg/PKGBUILD +++ b/zsteg/PKGBUILD | |||
@@ -1,22 +1,57 @@ | |||
1 | # Maintainer: gryffyn <aur at evan dot me> | 1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> |
2 | # Contributor: gryffyn <aur at evan dot me> | ||
2 | 3 | ||
3 | _gemname=zsteg | 4 | pkgname=zsteg |
4 | pkgname=$_gemname | 5 | pkgver=0.2.10 |
5 | pkgver=0.2.2 | ||
6 | pkgrel=1 | 6 | pkgrel=1 |
7 | pkgdesc="detect stegano-hidden data in PNG & BMP" | 7 | pkgdesc="detect stegano-hidden data in PNG & BMP" |
8 | arch=(any) | 8 | arch=(any) |
9 | url='https://github.com/zed-0xff/zsteg' | 9 | url='https://github.com/zed-0xff/zsteg' |
10 | license=(MIT) | 10 | license=(MIT) |
11 | depends=('ruby' 'ruby-zpng' 'ruby-iostruct') | 11 | depends=('ruby' 'ruby-zpng' 'ruby-iostruct') |
12 | options=(!emptydirs) | 12 | source=("${pkgname}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") |
13 | source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") | 13 | sha256sums=('fed43cbdeeaae7e25b87e7858dee2321b7a527c7686d062a60e5bb92928ebd3f') |
14 | noextract=($_gemname-$pkgver.gem) | 14 | |
15 | sha256sums=('f3f6bbaf46e5c9f0598aa8b8f457dad890873e4c4e382f6c22e408fd34958ad7') | 15 | build() { |
16 | cd "$pkgname-$pkgver" | ||
17 | gem build "$pkgname.gemspec" | ||
18 | } | ||
16 | 19 | ||
17 | package() { | 20 | package() { |
18 | local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" | 21 | local _gemdir="$(gem env gemdir)" |
19 | install -d -m 755 ${pkgdir}/usr/bin | 22 | |
20 | gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" | 23 | cd "$pkgname-$pkgver" |
21 | rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" | 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 | ||
22 | } | 57 | } |