summaryrefslogtreecommitdiff
path: root/user/libxklavier/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libxklavier/APKBUILD')
-rw-r--r--user/libxklavier/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/libxklavier/APKBUILD b/user/libxklavier/APKBUILD
new file mode 100644
index 000000000..f34d89506
--- /dev/null
+++ b/user/libxklavier/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=libxklavier
+pkgver=5.3
+pkgrel=0
+pkgdesc="High-level API for XKB"
+url="https://www.freedesktop.org/wiki/Software/LibXklavier/"
+arch="all"
+license="LGPL-2.0+"
+makedepends="libx11-dev libxml2-dev glib-dev libxcb-dev libxi-dev iso-codes-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://download.gnome.org/sources/libxklavier/$pkgver/libxklavier-$pkgver.tar.xz"
+sha512sums="7bec94aeedbe80aec2c44c9e2a3b7ea170618970fff3c1b5e677f1b292241e208b74eabd825d477eeab25bb0ee1d27f9b55f986a19ea8aacb078651a0c83b289 libxklavier-5.3.tar.xz"
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+