updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / pump / PKGBUILD
blobc633d538a78c7ce3287f3da7e8b6638d460fba8d
1 pkgname=pump
2 pkgver=0.8.24
3 pkgrel=7
4 arch=('i686' 'x86_64')
5 license=('GPL')
6 pkgdesc="BootP and DHCP client"
7 makedepends=('libnewt')
8 depends=('glibc')
9 source=(http://ftp.de.debian.org/debian/pool/main/p/pump/pump_${pkgver}.orig.tar.gz
10         http://ftp.de.debian.org/debian/pool/main/p/pump/pump_${pkgver}-${pkgrel}.diff.gz
11         pump.rc pump.rc-conf)
12 md5sums=('866fc9f62b8161eb1514a6a06597edc9'
13          '29b66e30daaccb1ec34123e292aa36b4'
14          '448cc87449887ec65582b80eeb3dc583'
15          '8b7892bd084934fc698a4f0ce186c844')
16 url="http://packages.debian.org/wheezy/pump"
17 backup=(etc/conf.d/pump)
18 install="pump.install"
20 build() {
21   sed -i -e "s|/usr/bin/install|/bin/install|g" $srcdir/pump-$pkgver/po/Makefile
22   sed -i -e 's|install -m 755 netconfig $(USRSBINPATH)/netconfig||g' $srcdir/pump-$pkgver/Makefile
24   cd $srcdir/pump-$pkgver
25   patch -Np1 -i ../pump_${pkgver}-${pkgrel}.diff
27   for i in `ls debian/patches/*.patch* | sort`; do
28     patch -p1 -s -i $i
29     if [ $? = 0 ]; then
30       echo "$i applied"
31     else
32       echo "Error processing $i"
33       return 1
34     fi
35   done
37   sed -i 's#-Wall -Werror ##g' $srcdir/pump-$pkgver/Makefile
38   make pump
41 package() {
42   cd $srcdir/pump-$pkgver
43   mkdir -p $pkgdir/sbin
44   mkdir -p $pkgdir/usr/{man/man8,share/locale}
45   RPM_BUILD_ROOT=$pkgdir/usr sbindir=$pkgdir/usr/sbin libdir=$pkgdir/usr/lib includedir=$pkgdir/usr/include mandir=$pkgdir/usr/man datadir=$pkgdir/usr/share make install
47   install -D -m644 $srcdir/pump.rc-conf $pkgdir/etc/conf.d/pump
48   install -D -m755 $srcdir/pump.rc $pkgdir/etc/rc.d/pump