diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-10-23 14:34:05 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-10-23 14:44:54 -0300 |
commit | a0a79a695930c3192ec4db0bf546a57932448b2d (patch) | |
tree | 1d6f5a7f49559b01dccdba1017c8bf8f036c8df4 /testing/opencc/APKBUILD | |
parent | 9b4d9f039d7cafabc555aa755eab2da5c6c2d57c (diff) | |
download | aports-a0a79a695930c3192ec4db0bf546a57932448b2d.tar.bz2 aports-a0a79a695930c3192ec4db0bf546a57932448b2d.tar.xz |
testing/opencc: switch to python3
Diffstat (limited to 'testing/opencc/APKBUILD')
-rw-r--r-- | testing/opencc/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/testing/opencc/APKBUILD b/testing/opencc/APKBUILD index 736f32cd2b..004f00e131 100644 --- a/testing/opencc/APKBUILD +++ b/testing/opencc/APKBUILD @@ -8,26 +8,29 @@ pkgdesc="Open Chinese Convert" url="http://opencc.byvoid.com/" arch="all" license="Apache-2.0" -makedepends="cmake doxygen python" +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" -builddir="$srcdir/$_pkgname-ver.$pkgver/build" +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 -p "$builddir" && cd "$builddir" + mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_DOCUMENTATION=on \ - -DBUILD_TESTING=off || return 1 - make || return 1 + -DBUILD_TESTING=off + make } package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + 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" +sha512sums="3fbefbafe5c3c2491032158577ab97b5a3edf6ea98a03a7250deba082b72c3112ad4a3396d1a469936ec32e1d141f0a2236001c2891ac9c793add2b082596cc1 opencc-ver.1.0.5.tar.gz +337176f438e0938b898deeb46ba9494c7510fc3a769852ad81cc9b0018d23240a2a1190b6d0f7bad686c967a2ce323cc4d8fe5c71678d678f53a58ba671c45ce python3.patch" |