Date: Friday, May 29, 2020 @ 15:25:37 Author: felixonmars Revision: 637108
archrelease: copy trunk to community-x86_64 Added: opencc/repos/community-x86_64/PKGBUILD (from rev 637107, opencc/trunk/PKGBUILD) Deleted: opencc/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 105 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 54 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-29 15:25:26 UTC (rev 637107) +++ PKGBUILD 2020-05-29 15:25:37 UTC (rev 637108) @@ -1,51 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=opencc -pkgname=(opencc opencc-doc) -pkgver=1.1.1 -pkgrel=2 -url="https://github.com/BYVoid/OpenCC" -arch=('x86_64') -license=('Apache') -makedepends=('cmake' 'doxygen' 'python-setuptools' 'python-wheel') -source=("https://github.com/BYVoid/OpenCC/archive/ver.$pkgver/$pkgbase-$pkgver.tar.gz") -sha512sums=('48ccf61f63cf0a1c0fc484a52ae1d406a28949a52be7d7d1595e6aaf87f40ac47ea4697308441a9381f0cd6f404ee5a28b85a2fa2f288c4b3933be36f4a41363') - -prepare() { - cd OpenCC-ver.$pkgver/python - # Use system opencc - sed -i '/BuildPyCommand,/d' setup.py - sed -e "s|os.path.join(_thisdir, 'clib', 'lib', _libopenccfilename)|os.path.join('/usr/lib', _libopenccfilename)|" \ - -e "s|os.path.join(_thisdir, 'clib', 'share', 'opencc')|'/usr/share/opencc'|" \ - -i opencc/__init__.py -} - -build() { - cd OpenCC-ver.$pkgver - cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DOCUMENTATION:BOOL=ON - make - - cd python - python setup.py build -} - -package_opencc() { - pkgdesc="Library for Open Chinese Convert" - depends=('gcc-libs') - - cd OpenCC-ver.$pkgver - make DESTDIR="${pkgdir}" install - - cd python - python setup.py install --root="$pkgdir" --optimize=1 - - # Remove docs - install in splitted package - rm -r "$pkgdir/usr/share/opencc/doc" -} - -package_opencc-doc() { - pkgdesc="Documentation for Library for Open Chinese Convert" - - cd OpenCC-ver.$pkgver/doc - make DESTDIR="${pkgdir}" install -} Copied: opencc/repos/community-x86_64/PKGBUILD (from rev 637107, opencc/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-29 15:25:37 UTC (rev 637108) @@ -0,0 +1,54 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=opencc +pkgname=(opencc opencc-doc) +pkgver=1.1.1 +pkgrel=3 +url="https://github.com/BYVoid/OpenCC" +arch=('x86_64') +license=('Apache') +makedepends=('cmake' 'doxygen' 'python-setuptools' 'python-wheel') +source=("https://github.com/BYVoid/OpenCC/archive/ver.$pkgver/$pkgbase-$pkgver.tar.gz" + opencc-fix-missing-include.patch::https://github.com/BYVoid/OpenCC/pull/417.patch) +sha512sums=('48ccf61f63cf0a1c0fc484a52ae1d406a28949a52be7d7d1595e6aaf87f40ac47ea4697308441a9381f0cd6f404ee5a28b85a2fa2f288c4b3933be36f4a41363' + '1c04eee731391c523ca8950f8520bb713a7e7f1fa9fd1c38e44dc193e5f026fc3fa120120eba9ecaa6108e12d22c56f50d5e92c05ac38d5afa624fc6cc9e8c7d') + +prepare() { + patch -d OpenCC-ver.$pkgver -p1 < opencc-fix-missing-include.patch + cd OpenCC-ver.$pkgver/python + # Use system opencc + sed -i '/BuildPyCommand,/d' setup.py + sed -e "s|os.path.join(_thisdir, 'clib', 'lib', _libopenccfilename)|os.path.join('/usr/lib', _libopenccfilename)|" \ + -e "s|os.path.join(_thisdir, 'clib', 'share', 'opencc')|'/usr/share/opencc'|" \ + -i opencc/__init__.py +} + +build() { + cd OpenCC-ver.$pkgver + cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DOCUMENTATION:BOOL=ON + make + + cd python + python setup.py build +} + +package_opencc() { + pkgdesc="Library for Open Chinese Convert" + depends=('gcc-libs') + + cd OpenCC-ver.$pkgver + make DESTDIR="${pkgdir}" install + + cd python + python setup.py install --root="$pkgdir" --optimize=1 + + # Remove docs - install in splitted package + rm -r "$pkgdir/usr/share/opencc/doc" +} + +package_opencc-doc() { + pkgdesc="Documentation for Library for Open Chinese Convert" + + cd OpenCC-ver.$pkgver/doc + make DESTDIR="${pkgdir}" install +}