[arch-commits] Commit in libchewing/trunk (PKGBUILD)

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Sep 27 15:29:49 UTC 2019


    Date: Friday, September 27, 2019 @ 15:29:48
  Author: yan12125
Revision: 511924

upgpkg: libchewing 0.5.1-3

* Correct license; it has been LGPL 2.1 since 0.4.0 [1]
* List myself as the maintainer
* Mention chewing-editor in optdepends
* Add check()
* Style: tabs to spaces and remove unnecessary $srcdir

[1] https://github.com/chewing/libchewing/commit/c0414d2f1cc8869a811f49878808232b27d8bf5e

Modified:
  libchewing/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-27 13:10:14 UTC (rev 511923)
+++ PKGBUILD	2019-09-27 15:29:48 UTC (rev 511924)
@@ -1,25 +1,35 @@
-# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
 # Contributor: whisky <archlinux.cle(at)gmail.com>
 # Contributor: damir <damir at archlinux.org>
 
 pkgname=libchewing
 pkgver=0.5.1
-pkgrel=2
+pkgrel=3
 pkgdesc='Intelligent Chinese phonetic input method'
 url='http://chewing.im/'
 arch=('x86_64')
-license=('GPL')
+license=('LGPL2.1')
 depends=('sqlite')
+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')
 
 build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	./configure --prefix=/usr
-	make
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr
+  make
 }
 
+check() {
+  cd ${pkgname}-${pkgver}
+  # parallel testing is broken (https://github.com/chewing/libchewing/issues/293)
+  make -j1 check
+}
+
 package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	make DESTDIR="${pkgdir}" install
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list