summaryrefslogtreecommitdiffstats
path: root/zsteg/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2022-08-11 18:11:10 +0300
committerYigit Sever2022-08-11 18:11:10 +0300
commit90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24 (patch)
tree48459931aa09db172f76d1aedd2ee13be6aeb136 /zsteg/PKGBUILD
parente9bccb97acd3dad5630fcc21927eca6da9982925 (diff)
downloadpackages-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/PKGBUILD59
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 4pkgname=zsteg
4pkgname=$_gemname 5pkgver=0.2.10
5pkgver=0.2.2
6pkgrel=1 6pkgrel=1
7pkgdesc="detect stegano-hidden data in PNG & BMP" 7pkgdesc="detect stegano-hidden data in PNG & BMP"
8arch=(any) 8arch=(any)
9url='https://github.com/zed-0xff/zsteg' 9url='https://github.com/zed-0xff/zsteg'
10license=(MIT) 10license=(MIT)
11depends=('ruby' 'ruby-zpng' 'ruby-iostruct') 11depends=('ruby' 'ruby-zpng' 'ruby-iostruct')
12options=(!emptydirs) 12source=("${pkgname}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
13source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") 13sha256sums=('fed43cbdeeaae7e25b87e7858dee2321b7a527c7686d062a60e5bb92928ebd3f')
14noextract=($_gemname-$pkgver.gem) 14
15sha256sums=('f3f6bbaf46e5c9f0598aa8b8f457dad890873e4c4e382f6c22e408fd34958ad7') 15build() {
16 cd "$pkgname-$pkgver"
17 gem build "$pkgname.gemspec"
18}
16 19
17package() { 20package() {
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}