Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / 
libchewing


Commits:
02ed423f by Chih-Hsuan Yen at 2024-05-14T23:41:53+08:00
0.8.0

* Add Rust dependencies as upstream enables the Rust implementation by
  default in this version
* Refactor $pkgver to allow easier testing of release candidates
* Move the build directory to a subdirectory of the source directory.
  This is needed for Rust tests.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,17 +1,19 @@
 pkgbase = libchewing
        pkgdesc = Intelligent Chinese phonetic input method
-       pkgver = 0.7.0
+       pkgver = 0.8.0
        pkgrel = 1
        url = https://chewing.im/
        arch = x86_64
        license = LGPL-2.1-or-later
        makedepends = cmake
        makedepends = minisign
+       makedepends = rust
+       makedepends = corrosion
        depends = sqlite
        optdepends = chewing-editor: view and modify libchewing user phrases 
database
-       source = 
https://github.com/chewing/libchewing/releases/download/v0.7.0/libchewing-0.7.0.tar.zst
-       source = 
https://github.com/chewing/libchewing/releases/download/v0.7.0/libchewing-0.7.0.tar.zst.minisig
-       sha256sums = 
87289bc759d04bfebad92d395d4f63e54f584f3e805731588edaa0c9a8bb6cce
-       sha256sums = 
16ed098e7a63da7631d27d2df3a72e095bed057aebe5a98335c766b5bf7b82db
+       source = 
https://github.com/chewing/libchewing/releases/download/v0.8.0/libchewing-0.8.0.tar.zst
+       source = 
https://github.com/chewing/libchewing/releases/download/v0.8.0/libchewing-0.8.0.tar.zst.minisig
+       sha256sums = 
11253a0f0b414444a09ae1efcce07a8168262972e106fe06ddcf2a4e02148dfc
+       sha256sums = 
2521c7b15cbd4f31f544ee67b2fa3052d605e6fcd99ba06051e30b1a9a948343
 
 pkgname = libchewing


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,8 @@
 # Contributor: damir <[email protected]>
 
 pkgname=libchewing
-pkgver=0.7.0
+_pkgver=0.8.0
+pkgver=${_pkgver/-rc./rc}
 pkgrel=1
 pkgdesc='Intelligent Chinese phonetic input method'
 url='https://chewing.im/'
@@ -12,25 +13,26 @@ arch=('x86_64')
 # See discussions at https://github.com/chewing/libchewing/issues/433
 license=('LGPL-2.1-or-later')
 depends=('sqlite')
-makedepends=('cmake' 'minisign')
+makedepends=('cmake' 'minisign' 'rust' 'corrosion')
 optdepends=(
   'chewing-editor: view and modify libchewing user phrases database'
 )
-source=("https://github.com/chewing/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.zst"{,.minisig})
-sha256sums=('87289bc759d04bfebad92d395d4f63e54f584f3e805731588edaa0c9a8bb6cce'
-            '16ed098e7a63da7631d27d2df3a72e095bed057aebe5a98335c766b5bf7b82db')
+source=("https://github.com/chewing/${pkgname}/releases/download/v${_pkgver}/${pkgname}-${_pkgver}.tar.zst"{,.minisig})
+sha256sums=('11253a0f0b414444a09ae1efcce07a8168262972e106fe06ddcf2a4e02148dfc'
+            '2521c7b15cbd4f31f544ee67b2fa3052d605e6fcd99ba06051e30b1a9a948343')
 # The key is mentioned on https://github.com/chewing/libchewing
 _validminisignkey='RWRzJFnXiLZleAyCIv1talBjyRewelcy9gzYQq9pd3SKSFBPoy57sf5s'
 
 # XXX: move to verify() when devtools supports it
 # https://gitlab.archlinux.org/archlinux/devtools/-/issues/224
 prepare() {
-  minisign -Vm $pkgname-$pkgver.tar.zst -P $_validminisignkey
+  minisign -Vm $pkgname-$_pkgver.tar.zst -P $_validminisignkey
 }
 
 build() {
+  cd $pkgname-$_pkgver
   # Specify the existence of ncurses.h manually as FindCurses.cmake cannot 
identify it
-  cmake -B build -S $pkgname-$pkgver \
+  cmake -B build \
     -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DBUILD_INFO=ON \
@@ -40,9 +42,9 @@ build() {
 
 check() {
   # parallel testing is broken 
(https://github.com/chewing/libchewing/issues/293)
-  make -C build -j1 check
+  make -C $pkgname-$_pkgver/build -j1 check
 }
 
 package() {
-  make -C build DESTDIR="${pkgdir}" install
+  make -C $pkgname-$_pkgver/build DESTDIR="${pkgdir}" install
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libchewing/-/commit/02ed423fb5b2b6292387b0d8fe6c340aedf611ef

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libchewing/-/commit/02ed423fb5b2b6292387b0d8fe6c340aedf611ef
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to