mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 07:47:00 +00:00
contrib: add archlinux package build file
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
32e2d399a0
commit
e5f9a77511
1 changed files with 36 additions and 0 deletions
36
contrib/PKGBUILD
Normal file
36
contrib/PKGBUILD
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# Archlinux package file. Just download this file, and
|
||||||
|
# makepkg PKGBUILD
|
||||||
|
# pacman -U ./dhcpd-pools*.pkg.tar.xz
|
||||||
|
|
||||||
|
pkgname=dhcpd-pools
|
||||||
|
pkgver=0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="ISC dhcpd lease status utility"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url=http://dhcpd-pools.sourceforge.net/
|
||||||
|
license=('BSD')
|
||||||
|
depends=('pacman')
|
||||||
|
makedepends=('uthash' 'git')
|
||||||
|
source=("$pkgname"::'git://git.code.sf.net/p/dhcpd-pools/code')
|
||||||
|
md5sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
# Use the tag of the last commit
|
||||||
|
git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
./bootstrap
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--bindir=/usr/bin
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
make PREFIX=/ DESTDIR="$pkgdir" install
|
||||||
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue