1 # Contributor: p2k <Patrick.Schneider@uni-ulm.de>
5 pkgdesc="An utility designed to identify file types from their binary signatures"
7 url="http://mark0.net/soft-trid-e.html"
9 if [ "$CARCH" == "x86_64" ];then
10 depends=('bash' 'lib32-ncurses')
12 depends=('bash' 'ncurses')
15 source=(http://mark0.net/download/trid_linux.zip http://mark0.net/download/triddefs.zip)
16 md5sums=('e45c6ea237ef74413f63f42d533a9788'
17 '55f7350305b80b2b8b91766c4fc7628f')
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
32 /opt/trid/trid -d:/opt/trid/triddefs.trd \$*
35 chmod +x "$pkgdir/usr/bin/trid"
38 # vim:set ts=2 sw=2 et: