aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opencc/APKBUILD
blob: 1e9bfa0873034fbc0b9c39f2bc0988dc5df69e91 (plain) (blame)
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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=opencc
_pkgname=OpenCC
pkgver=1.0.5
pkgrel=1
pkgdesc="Open Chinese Convert"
url="http://opencc.byvoid.com/"
arch="all"
license="Apache-2.0"
makedepends="cmake doxygen python3"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-ver.$pkgver.tar.gz::https://github.com/BYVoid/$_pkgname/archive/ver.$pkgver.tar.gz
	python3.patch
	"
builddir="$srcdir/$_pkgname-ver.$pkgver"

build() {
	mkdir build && cd build
	cmake .. -DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_DOCUMENTATION=on \
		-DBUILD_TESTING=off
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"-doc/usr/share/doc
	mv "$pkgdir"/usr/share/$pkgname/doc "$pkgdir"-doc/usr/share/doc/$pkgname
}

sha512sums="3fbefbafe5c3c2491032158577ab97b5a3edf6ea98a03a7250deba082b72c3112ad4a3396d1a469936ec32e1d141f0a2236001c2891ac9c793add2b082596cc1  opencc-ver.1.0.5.tar.gz
337176f438e0938b898deeb46ba9494c7510fc3a769852ad81cc9b0018d23240a2a1190b6d0f7bad686c967a2ce323cc4d8fe5c71678d678f53a58ba671c45ce  python3.patch"