aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libxdg-basedir/APKBUILD
blob: c7d7a66fb1611a6a39191f1b270d113304b7027f (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
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=libxdg-basedir
pkgver=1.1.1
pkgrel=0
pkgdesc="library for XDG base dir specification"
url="http://n.ethz.ch/~nevillm/download/libxdg-basedir/"
arch="all"
license="MIT"
depends=
depends_dev=
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://n.ethz.ch/~nevillm/download/libxdg-basedir/${pkgname}-${pkgver}.tar.gz"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="7c64a28b08c8fdf6c8a95b0d5f1497b0  libxdg-basedir-1.1.1.tar.gz"