APKBUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Maintainer: Rydia <rydia@member.fsf.org>
  2. pkgname=ibus-table-chinese
  3. pkgver=1.8.3
  4. pkgrel=0
  5. pkgdesc="Next Generation Input Bus for Linux"
  6. url="https://github.com/definite/ibus-table-chinese"
  7. arch="all"
  8. license="LGPL-2.1-or-later"
  9. depends="
  10. ibus ibus-table
  11. "
  12. makedepends="
  13. ibus-dev cmake
  14. "
  15. source="
  16. $pkgname-$pkgver.tar.gz::https://github.com/definite/$pkgname/archive/refs/tags/$pkgver.tar.gz
  17. cmake-fedora-2.9.2-Source.tar.gz::https://releases.pagure.org/cmake-fedora/cmake-fedora-2.9.2-Source.tar.gz
  18. "
  19. prepare() {
  20. default_prepare
  21. rmdir cmake-fedora
  22. ln -sf ../cmake-fedora-2.9.2-Source cmake-fedora
  23. }
  24. build() {
  25. if [ "$CBUILD" != "$CHOST" ]; then
  26. CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
  27. fi
  28. cmake -DCMAKE_INSTALL_PREFIX=/usr $CMAKE_CROSSOPTS .
  29. cmake --build .
  30. }
  31. package() {
  32. DESTDIR="$pkgdir" cmake --install .
  33. }
  34. sha512sums="
  35. 610455343d9c9bf6577c7fd7aef9435c339c2f23c4d5f7ae2cbbc2366a9eb6a8a124e86621387497cc624e3276bf739b55602355ad41c4127f45f6d85cc5b4dc ibus-table-chinese-1.8.3.tar.gz
  36. 187637035c237c76ac53f859f142503437e7e45edcada918aedf76fae38ba1ddf2254ecd4c4ddc55e075f27e1e8fc11acd7fa45d106d4de507fa3ccc82b5c104 cmake-fedora-2.9.2-Source.tar.gz
  37. "