summaryrefslogtreecommitdiff
path: root/social/ahcpd/PKGBUILD
blob: a4c31e12763822cb8d0f174b54ba6244667f34ee (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
# Maintainer (Arch): Yann Lopez <arch at lonewulf dot net>
pkgname=ahcpd
pkgver=0.53
pkgrel=1
pkgdesc="Ad-Hoc Configuration Protocol"
arch=(i686 x86_64 mips64el)
url="http://www.pps.jussieu.fr/~jch/software/ahcp/"
license=('custom')
depends=('sh')
source=(http://www.pps.jussieu.fr/~jch/software/files/$pkgname-$pkgver.tar.gz)

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

  sed -i 's/\$(PREFIX)\/man/$(PREFIX)\/share\/man/g' Makefile
  make PREFIX="/usr"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  
  make install TARGET=${pkgdir} PREFIX=/usr

  install -d $pkgdir/usr/share/licenses/ahcpd
  install -m 644 LICENCE $pkgdir/usr/share/licenses/ahcpd/
}
md5sums=('a1a610bf20965aa522cd766bf3d5829a')