summaryrefslogtreecommitdiff
path: root/testing/liblouis/APKBUILD
blob: e348423dce0ef4b93f7ca5229cc87b12a056cd0e (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname="liblouis"
pkgver="3.12.0"
pkgrel=0
pkgdesc="Braille translator and back-translator"
url="http://liblouis.org/"
arch="all"
license="GPL-3.0"
depends=""
makedepends=""
install=""
subpackages="$pkgname-static $pkgname-dev $pkgname-bin:_bin"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/liblouis/liblouis/releases/download/v$pkgver/liblouis-$pkgver.tar.gz
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-ucs4
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

_bin() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="dde18b6d8627f03219e0f4805836a78672175a569fcf006ba679f2108357890bbe286136f3231c26f3ca567cc33ef9350c6e2d6c544a352638f7f243abc4cbda  liblouis-3.12.0.tar.gz"