diff options
author | Ivan Tham <pickfire@riseup.net> | 2017-02-21 17:44:53 +0800 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-02-22 12:40:42 +0000 |
commit | c3bb7e8ffd08e86a904939a06a59382e90c70395 (patch) | |
tree | 5692967af5383c6c95c2d5bfa595ffd60be50e33 /testing/opencc | |
parent | 072fede08fb5b21fc94d4175e7b9d3a2959c7328 (diff) | |
download | aports-c3bb7e8ffd08e86a904939a06a59382e90c70395.tar.bz2 aports-c3bb7e8ffd08e86a904939a06a59382e90c70395.tar.xz |
testing/opencc: new aport
http://opencc.byvoid.com/
Open Chinese Convert
Diffstat (limited to 'testing/opencc')
-rw-r--r-- | testing/opencc/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/opencc/APKBUILD b/testing/opencc/APKBUILD new file mode 100644 index 0000000000..518ef39dd8 --- /dev/null +++ b/testing/opencc/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Ivan Tham <pickfire@riseup.net> +# Maintainer: Ivan Tham <pickfire@riseup.net> +pkgname=opencc +_pkgname=OpenCC +pkgver=1.0.5 +pkgrel=0 +pkgdesc="Open Chinese Convert" +url="http://opencc.byvoid.com/" +arch="all" +license="ASL 2.0" +makedepends="cmake doxygen python" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-ver.$pkgver.tar.gz::https://github.com/BYVoid/$_pkgname/archive/ver.$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-ver.$pkgver/build" + +build() { + mkdir -p "$builddir" && cd "$builddir" + cmake .. -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_DOCUMENTATION=on \ + -DBUILD_TESTING=off || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + + 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" |