diff options
Diffstat (limited to 'zsteg')
-rw-r--r-- | zsteg/.SRCINFO | 14 | ||||
-rw-r--r-- | zsteg/.gitignore | 4 | ||||
-rw-r--r-- | zsteg/PKGBUILD | 57 |
3 files changed, 75 insertions, 0 deletions
diff --git a/zsteg/.SRCINFO b/zsteg/.SRCINFO new file mode 100644 index 0000000..74b3fad --- /dev/null +++ b/zsteg/.SRCINFO | |||
@@ -0,0 +1,14 @@ | |||
1 | pkgbase = zsteg | ||
2 | pkgdesc = detect stegano-hidden data in PNG & BMP | ||
3 | pkgver = 0.2.10 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/zed-0xff/zsteg | ||
6 | arch = any | ||
7 | license = MIT | ||
8 | depends = ruby | ||
9 | depends = ruby-zpng | ||
10 | depends = ruby-iostruct | ||
11 | source = zsteg.tar.gz::https://github.com/zed-0xff/zsteg/archive/refs/tags/v0.2.10.tar.gz | ||
12 | sha256sums = fed43cbdeeaae7e25b87e7858dee2321b7a527c7686d062a60e5bb92928ebd3f | ||
13 | |||
14 | pkgname = zsteg | ||
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 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 | } | ||