updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / debian-netcat / PKGBUILD
blobc7feeb95e9a18c08aa53a41cd1f2d9bd36f167f8
1 # Contributor: Sofia Benitez <srita.sapphire at gmail dot com>
3 pkgname="debian-netcat"
4 pkgver="1.10"
5 pkgrel=1
6 debrel=38
7 pkgdesc="TCP/IP swiss army knife. Debian variant."
8 arch=('i686' 'x86_64')
9 url="http://packages.debian.org/sid/netcat-traditional"
10 license=('BSD')
11 depends=('glib2' 'glibc')
12 makedepends=('make')
14 if [ "$CARCH" = "i686" ]; then
15         debarch=("i386")
16         source=("http://ftp.us.debian.org/debian/pool/main/n/netcat/netcat-traditional_${pkgver}-${debrel}_${debarch}.deb")
17         md5sums=('6198ea66a2a00414f456e38cc9461db3')
18         sha256sums=('9b94cd8083a89831647309a0d8cd9b38191bb58ea09eba3ad0019a1278688f95')
21 if [ "$CARCH" = "x86_64" ]; then
22         debarch=("amd64")
23         source=("http://ftp.us.debian.org/debian/pool/main/n/netcat/netcat-traditional_${pkgver}-${debrel}_${debarch}.deb")
24         md5sums=('8ab7a32006903aedcc4d3e1f410d8a77')
25         sha256sums=('ac30aaac044277f53edda3a4ca930b7435c1a9f5e315ba5a8e7c32b60cc4b7aa')
28 build()
30         cd ${startdir}/src
31         ar x netcat-traditional_${pkgver}-${debrel}_${debarch}.deb
32         tar -zxf data.tar.gz
33         mkdir ${startdir}/pkg/usr
34         cp -r bin ${startdir}/pkg/usr
35         cp -r usr ${startdir}/pkg/
36 }