summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4df894a2a496d23ffcf6d51a061a6ef9be130d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Steffen Fritz <aur AT fritz DOT wtf>

pkgname=roy
pkgver=1.7.4
pkgrel=1
pkgdesc="With the roy tool you can build custom signature files for siegfried, the signature-based file format identification tool.
"
arch=('x86_64' 'i686')
url="http://www.itforarchivists.com/siegfried"
license=('APACHE')
depends=('go')
makedepends=('git')
options=('!strip' '!emptydirs')
_gourl=github.com/richardlehane/siegfried/cmd/roy

build() {
  GOPATH="$srcdir" go get ${_gourl}
}

check() {
  GOPATH="$GOPATH${GOPATH+:}$srcdir" go test -v -x ${_gourl}
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  install -Dm755 "$srcdir"/bin/roy "$pkgdir"/usr/bin/roy
}

# vim:set ts=2 sw=2 et: