summaryrefslogtreecommitdiff
path: root/pcr/aiccu/PKGBUILD
blob: 55ccfb2c0dba6bb96ad8da440cc5f3163b9184b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkgname=aiccu
pkgver=20070115
pkgrel=7
pkgdesc="SixXS Automatic IPv6 Connectivity Client Utility - AICCU"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.sixxs.net/tools/aiccu/"
license=('BSD')
depends=('gnutls' 'iproute2')
makedepends=('glibc' 'libgpg-error' 'libtasn1' 'libgcrypt' 'zlib')
backup=(etc/aiccu.conf)
source=(http://www.sixxs.net/archive/sixxs/aiccu/unix/${pkgname}_${pkgver}.tar.gz
        aiccu.rc.d)
md5sums=('c9bcc83644ed788e22a7c3f3d4021350'
         '9eb63ae132d4835a822ea925c6440b04')

build() {
  cd "$srcdir/$pkgname"

  sed -i 's|Installing Debian-style init.d||' Makefile

  LDFLAGS="" make
  make DESTDIR="$pkgdir" install
}

package() {
  cd "$srcdir/$pkgname"

  install -D -m600 doc/aiccu.conf "$pkgdir/etc/aiccu.conf"
  install -D -m755 "$srcdir/aiccu.rc.d" "$pkgdir/etc/rc.d/aiccu"
  install -D -m444 doc/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  rm -fr "$pkgdir/etc/init.d"
}