APKBUILD 809 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=damageproto
3
pkgver=1.2.1
4
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="X11 Damage extension wire protocol"
url="http://xorg.freedesktop.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9 10
license="custom"
depends=""
makedepends=""
11
source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
12

13 14 15 16 17 18 19
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

20
build() {
21
	cd "$_builddir"
22 23 24 25 26
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
27
	make || return 1
28 29 30 31
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
32 33
	make DESTDIR="$pkgdir" install || return 1
}
34
sha512sums="f124e85fb3cc70ed3536cb9db57ac93461bbb5df1a713bc6b67a5ea49122556c321781ca150df681502f6ccfb7305f290e131ad25ce9ccbff5af268df11c86fc  damageproto-1.2.1.tar.bz2"