mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-15 21:02:08 +01:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
|
pkgname=libxkbcommon
|
|
pkgver=0.3.0
|
|
pkgrel=0
|
|
pkgdesc="a keyboard handling library"
|
|
url="http://www.xkbcommon.org/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="$depends_dev bison flex"
|
|
install=""
|
|
subpackages="$pkgname-dev"
|
|
source="http://xkbcommon.org/download/libxkbcommon-$pkgver.tar.xz"
|
|
|
|
_builddir="$srcdir"/libxkbcommon-$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 \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
rm -f "$pkgdir"/usr/lib/*.la
|
|
}
|
|
|
|
md5sums="22a046100738f99b4cc0297aa210f4e4 libxkbcommon-0.3.0.tar.xz"
|
|
sha256sums="866c0df88f806dff8fc859b6f082cf9f8b6c3b549f0a367541e12b1ca28a5d65 libxkbcommon-0.3.0.tar.xz"
|
|
sha512sums="0fd15d014aeff8d067323d61499e8addf567d9dd7cd3714e989eabab9bfb117ad9dc8795f11485fa0f8676e3fe5fae83821b220c6d05c6232fe7503114e2d64e libxkbcommon-0.3.0.tar.xz"
|