summaryrefslogtreecommitdiffstats
path: root/zsteg/PKGBUILD
blob: 1a49d80b1efec7521f23c9124525fff7071abfa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: gryffyn <aur at evan dot me>

_gemname=zsteg
pkgname=$_gemname
pkgver=0.2.2
pkgrel=1
pkgdesc="detect stegano-hidden data in PNG & BMP"
arch=(any)
url='https://github.com/zed-0xff/zsteg'
license=(MIT)
depends=('ruby' 'ruby-zpng' 'ruby-iostruct')
options=(!emptydirs)
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
noextract=($_gemname-$pkgver.gem)
sha256sums=('f3f6bbaf46e5c9f0598aa8b8f457dad890873e4c4e382f6c22e408fd34958ad7')

package() {
  local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
  install -d -m 755 ${pkgdir}/usr/bin
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
}