summaryrefslogtreecommitdiff
path: root/pcr/libixp-hg/PKGBUILD
blob: 3642535d1d69eea79232b03cb906a210f9cabd6b (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
34
35
36
37
38
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname="libixp-hg"
pkgver=148
pkgdesc="A 9p client/server library"
url="http://libs.suckless.org/libixp"
license=("MIT")

provides=("libixp")
conflicts=("libixp")

pkgrel=1
arch=("i686" "x86_64")
makedepends=("txt2tags")
options=(staticlibs)

source=("libre://${pkgname}-${pkgver}.tar.gz")
md5sums=('5a2fd075108558b39988610d2bb184d9')

mkdepends=("mercurial")
mksource=("$pkgname-$pkgver::hg+https://code.google.com/p/libixp/#revision=${pkgver}")
mkmd5sums=('SKIP')
mksource() {
	# don't include this precompiled binary (probably included by accident)
	rm "${srcdir}/${pkgname}-${pkgver}/test/o.client"
}

_makeflags=("PREFIX=/usr" "ETC=/etc")
build() {
	cd "$srcdir/$pkgname-$pkgver"
	make "${_makeflags[@]}"
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make "${_makeflags[@]}" DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}