aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmatekbd/APKBUILD
blob: 9015300df4f7e1fff15d02eac5485f9c820a9818 (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmatekbd
pkgver=1.18.1
pkgrel=0
pkgdesc="MATE keyboard library"
url="https://github.com/mate-desktop/libmatekbd"
arch="all"
license="GPL2"
depends="mate-common freetype"
depends_dev=""
makedepends="$depends_dev libxklavier-dev libtool intltool gtk+3.0-dev"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

_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 \
		--sysconfdir=/etc \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
}

sha512sums="562f56fd09ac6b26126cfe4cf6ca919978a0cd1c6bdaa27cdfcea82d450a0d4cdfa9c4774b9697cefeba9841310c367c66b99c2380b91dc454f7e234904ee362  libmatekbd-1.18.1.tar.xz"