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


Commits:
4f1796d7 by Chih-Hsuan Yen at 2024-01-27T21:03:24+08:00
Update to 0.6.0

The minisign command is adapted from
https://gitlab.archlinux.org/archlinux/packaging/packages/libsodium/-/blob/main/PKGBUILD

- - - - -
45dcdc12 by Chih-Hsuan Yen at 2024-01-27T21:07:44+08:00
upgpkg: 0.6.0-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,17 @@
+pkgbase = libchewing
+       pkgdesc = Intelligent Chinese phonetic input method
+       pkgver = 0.6.0
+       pkgrel = 1
+       url = https://chewing.im/
+       arch = x86_64
+       license = LGPL-2.1-or-later
+       makedepends = cmake
+       makedepends = minisign
+       depends = sqlite
+       optdepends = chewing-editor: view and modify libchewing user phrases 
database
+       source = 
https://github.com/chewing/libchewing/releases/download/v0.6.0/libchewing-0.6.0.tar.xz
+       source = 
https://github.com/chewing/libchewing/releases/download/v0.6.0/libchewing-0.6.0.tar.xz.minisig
+       sha256sums = 
c2913bed55b7fdb25942b6a5832c254bc9bcb9c365d3cafa0a569b4b7cbd8f00
+       sha256sums = 
4f2c8cada59331add1366bd19842a60f996b02741f9c5dc19818c119886b5421
+
+pkgname = libchewing


=====================================
PKGBUILD
=====================================
@@ -4,32 +4,43 @@
 # Contributor: damir <da...@archlinux.org>
 
 pkgname=libchewing
-pkgver=0.5.1
-pkgrel=4
+pkgver=0.6.0
+pkgrel=1
 pkgdesc='Intelligent Chinese phonetic input method'
 url='https://chewing.im/'
 arch=('x86_64')
-license=('LGPL2.1')
+# See discussions at https://github.com/chewing/libchewing/issues/433
+license=('LGPL-2.1-or-later')
 depends=('sqlite')
+makedepends=('cmake' 'minisign')
 optdepends=(
   'chewing-editor: view and modify libchewing user phrases database'
 )
-source=("https://github.com/chewing/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2";)
-sha256sums=('9708c63415fa6034435c0f38100e7d30d0e1bac927f67bec6dfeb3fef016172b')
+source=("https://github.com/chewing/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.minisig})
+sha256sums=('c2913bed55b7fdb25942b6a5832c254bc9bcb9c365d3cafa0a569b4b7cbd8f00'
+            '4f2c8cada59331add1366bd19842a60f996b02741f9c5dc19818c119886b5421')
+# The key is mentioned on https://github.com/chewing/libchewing
+_validminisignkey='RWRzJFnXiLZleAyCIv1talBjyRewelcy9gzYQq9pd3SKSFBPoy57sf5s'
+
+# XXX: move to verify() when pacman 7.0 is out
+# https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/37
+prepare() {
+  minisign -Vm $pkgname-$pkgver.tar.xz -P $_validminisignkey
+}
 
 build() {
-  cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr
-  make
+  cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_INFO=ON
+  make -C build
 }
 
 check() {
-  cd ${pkgname}-${pkgver}
   # parallel testing is broken 
(https://github.com/chewing/libchewing/issues/293)
-  make -j1 check
+  make -C build -j1 check
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
+  make -C build DESTDIR="${pkgdir}" install
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libchewing/-/compare/8b4a1d4cca8a9790e5f5454350b544a1febcf55e...45dcdc121df78f24458676c40e2c94250549af5a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libchewing/-/compare/8b4a1d4cca8a9790e5f5454350b544a1febcf55e...45dcdc121df78f24458676c40e2c94250549af5a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to