summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2022-08-11 18:11:10 +0300
committerYigit Sever2022-08-11 18:11:10 +0300
commit90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24 (patch)
tree48459931aa09db172f76d1aedd2ee13be6aeb136
parente9bccb97acd3dad5630fcc21927eca6da9982925 (diff)
downloadpackages-90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24.tar.gz
packages-90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24.tar.bz2
packages-90bb8b2468e26f4bbb495f2798c0e7d5b3a63c24.zip
zsteg: Update to v0.2.10
-rw-r--r--zsteg/.SRCINFO9
-rw-r--r--zsteg/.gitignore4
-rw-r--r--zsteg/PKGBUILD59
3 files changed, 54 insertions, 18 deletions
diff --git a/zsteg/.SRCINFO b/zsteg/.SRCINFO
index 6cca372..74b3fad 100644
--- a/zsteg/.SRCINFO
+++ b/zsteg/.SRCINFO
@@ -1,6 +1,6 @@
1pkgbase = zsteg 1pkgbase = zsteg
2 pkgdesc = detect stegano-hidden data in PNG & BMP 2 pkgdesc = detect stegano-hidden data in PNG & BMP
3 pkgver = 0.2.2 3 pkgver = 0.2.10
4 pkgrel = 1 4 pkgrel = 1
5 url = https://github.com/zed-0xff/zsteg 5 url = https://github.com/zed-0xff/zsteg
6 arch = any 6 arch = any
@@ -8,10 +8,7 @@ pkgbase = zsteg
8 depends = ruby 8 depends = ruby
9 depends = ruby-zpng 9 depends = ruby-zpng
10 depends = ruby-iostruct 10 depends = ruby-iostruct
11 noextract = zsteg-0.2.2.gem 11 source = zsteg.tar.gz::https://github.com/zed-0xff/zsteg/archive/refs/tags/v0.2.10.tar.gz
12 options = !emptydirs 12 sha256sums = fed43cbdeeaae7e25b87e7858dee2321b7a527c7686d062a60e5bb92928ebd3f
13 source = https://rubygems.org/downloads/zsteg-0.2.2.gem
14 sha256sums = f3f6bbaf46e5c9f0598aa8b8f457dad890873e4c4e382f6c22e408fd34958ad7
15 13
16pkgname = zsteg 14pkgname = zsteg
17
diff --git a/zsteg/.gitignore b/zsteg/.gitignore
new file mode 100644
index 0000000..05c6d4d
--- /dev/null
+++ b/zsteg/.gitignore
@@ -0,0 +1,4 @@
1*
2!.gitignore
3!.SRCINFO
4!PKGBUILD
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}