aboutsummaryrefslogtreecommitdiffstats
path: root/main/xproto/APKBUILD
blob: a3cad2dbe66812be58eed98d5dcbfb5324ad627f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xproto
pkgver=7.0.27
pkgrel=0
pkgdesc="X11 core wire protocol and auxiliary headers"
url="http://xorg.freedesktop.org/"
arch="noarch"
license="custom"
depends=""
makedepends=""
# only headers here so no need for subpkgs
#subpackages="$pkgname-dev $pkgname-doc"
source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver

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

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

md5sums="6c3345111a8044f730984988aacfa567  xproto-7.0.27.tar.bz2"
sha256sums="246f23a6b235c8008183deeb1dcd76d529a099f93600b648b399811b10ea110c  xproto-7.0.27.tar.bz2"
sha512sums="3daf7a669ed7419aa054c374e52d9421c6121d79ccac939072651cef9d56b541521a645980f0ef7582fdee8e7a83c47ea1c1b065f5f169ddd83e7ede684a5545  xproto-7.0.27.tar.bz2"