aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/xcursorgen/APKBUILD
blob: 40d1b85bdedba5c52115a10c3a33de06f7e10d07 (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
41
42
43
44
45
46
47
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=xcursorgen
pkgver=1.0.6
pkgrel=0
pkgdesc="Create an X cursor file from PNG images"
url="http://xorg.freedesktop.org"
arch="all"
license="MIT"
depends=""
depends_dev="libpng-dev libxcursor-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://xorg.freedesktop.org/archive/individual/app/${pkgname}-${pkgver}.tar.bz2"

_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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="b58a87e6cd7145c70346adad551dba48  xcursorgen-1.0.6.tar.bz2"
sha256sums="31c8910f54eb175a8a74a60e7662697467e21a8bf948220a6048a93924b3f66c  xcursorgen-1.0.6.tar.bz2"
sha512sums="3b464b7be3cec8c6d2bf4538266108bdc09e1dae4053d573f7f38e004929b41be0d996aa54918490fa040655644e2b0d4fab1ec24cca014d77bdb91c41ab1db4  xcursorgen-1.0.6.tar.bz2"