updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / sbd / PKGBUILD
blob3aae5f5bc55d8e7baccaeaf3549d36077de511e2
1 # Maintainer: fnord0 <fnord0 AT riseup DOT net>
3 pkgname=sbd
4 pkgver=1.36
5 pkgrel=2
6 pkgdesc="Netcat-clone, portable, offers strong encryption - features AES-128-CBC + HMAC-SHA1 encryption, program execution (-e), choosing source port, continuous reconnection with delay + more"
7 url="http://www2.packetstormsecurity.org/cgi-bin/search/search.cgi?searchvalue=sbd"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 source=("http://dl.packetstormsecurity.net/UNIX/netcat/${pkgname}-${pkgver}.tar.gz")
11 md5sums=('866d1bf2fe156bbaf94bfcec2014767e')
12 sha1sums=('859f2c4ae4af8ad2d5ad258d10d5a7174139cfbb')
14 build() {
15     cd ${srcdir}/${pkgname}-${pkgver}
16     make unix || return 1
17     install -d ${pkgdir}/usr/bin || return 1
18     install -d ${pkgdir}/usr/share/${pkgname}/doc || return 1
19     install -d ${pkgdir}/usr/share/licenses/${pkgname} || return 1
20     install -Dm755 ${srcdir}/${pkgname}-${pkgver}/${pkgname} ${pkgdir}/usr/share/${pkgname}/${pkgname} || return 1
21     install -Dm755 ${srcdir}/${pkgname}-${pkgver}/binaries/${pkgname}.exe ${pkgdir}/usr/share/${pkgname}/${pkgname}.exe || return 1
22     install -Dm755 ${srcdir}/${pkgname}-${pkgver}/binaries/${pkgname}bg.exe ${pkgdir}/usr/share/${pkgname}/${pkgname}bg.exe || return 1
23     install -Dm644 README ${pkgdir}/usr/share/${pkgname}/doc/README || return 1
24     install -Dm644 CHANGES ${pkgdir}/usr/share/${pkgname}/doc/CHANGES || return 1
25     install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING || return 1
26     ln -sf /usr/share/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname} || return 1
27     ln -sf /usr/share/${pkgname}/${pkgname}.exe ${pkgdir}/usr/bin/${pkgname}.exe || return 1
28     ln -sf /usr/share/${pkgname}/${pkgname}bg.exe ${pkgdir}/usr/bin/${pkgname}bg.exe || return 1