updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / trid / PKGBUILD
blob9611f38dcaf22ff3a4a4d49324c38e8ecf845b2d
1 # Contributor: p2k <Patrick.Schneider@uni-ulm.de>
2 pkgname=trid
3 pkgver=2.10
4 pkgrel=1
5 pkgdesc="An utility designed to identify file types from their binary signatures"
6 arch=('i686' 'x86_64')
7 url="http://mark0.net/soft-trid-e.html"
8 license=('CUSTOM')
9 if [ "$CARCH" == "x86_64" ];then
10   depends=('bash' 'lib32-ncurses')
11 else
12   depends=('bash' 'ncurses')
14 makedepends=()
15 source=(http://mark0.net/download/trid_linux.zip http://mark0.net/download/triddefs.zip)
16 md5sums=('e45c6ea237ef74413f63f42d533a9788'
17          '55f7350305b80b2b8b91766c4fc7628f')
19 build() {
20   cd "$srcdir"
22   install -D trid "$pkgdir/opt/trid/trid"
23   install -m 644 triddefs.trd "$pkgdir/opt/trid/triddefs.trd"
24   install -m 644 readme_e.txt "$pkgdir/opt/trid/README"
25   mkdir -p "$pkgdir/usr/share/licenses/trid"
26   ln -s /opt/trid/README "$pkgdir/usr/share/licenses/trid/README"
28   mkdir -p "$pkgdir/usr/bin"
29   cat > "$pkgdir/usr/bin/trid" <<EOF
30 #!/bin/bash
32 /opt/trid/trid -d:/opt/trid/triddefs.trd \$*
34 EOF
35   chmod +x "$pkgdir/usr/bin/trid"
38 # vim:set ts=2 sw=2 et: