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

Massimiliano Torromeo mtorromeo at gemini.archlinux.org
Mon Jul 18 09:39:56 UTC 2022


    Date: Monday, July 18, 2022 @ 09:39:55
  Author: mtorromeo
Revision: 1254421

upgpkg: libimagequant 4.0.0-1

Modified:
  libimagequant/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-18 09:17:30 UTC (rev 1254420)
+++ PKGBUILD	2022-07-18 09:39:55 UTC (rev 1254421)
@@ -1,30 +1,30 @@
 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
 pkgname=libimagequant
-pkgver=2.17.0
-pkgrel=3
+pkgver=4.0.0
+pkgrel=1
 pkgdesc="Library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images"
 arch=('x86_64')
 url="https://pngquant.org/lib/"
 license=('BSD')
 depends=('gcc-libs')
+makedepends=('cargo' 'cargo-c')
 options=('debug')
 source=("https://github.com/ImageOptim/libimagequant/archive/$pkgver/libimagequant-$pkgver.tar.gz")
-sha256sums=('9f6cc50182be4d2ece75118aa0b0fd3e9bbad06e94fd6b9eb3a4c08129c2dd26')
+sha256sums=('d041f6f2dac36df76f22cedaf74c914f46bff1fea7d6025d1b13199204c25dd8')
 
-prepare() {
-    cd "$srcdir/$pkgname-$pkgver"
-    sed -r 's/^install:.*/install:/;/install.*STATICLIB/d' -i Makefile
+build() {
+    cd "$srcdir/$pkgname-$pkgver/imagequant-sys"
+    cargo cbuild --release --prefix=/usr
 }
 
-build() {
-    cd "$srcdir/$pkgname-$pkgver"
-    ./configure --prefix=/usr --with-openmp
-    make shared imagequant.pc
+check() {
+    cd "$srcdir/$pkgname-$pkgver/imagequant-sys"
+    cargo ctest --release
 }
 
 package() {
-    cd "$srcdir/$pkgname-$pkgver"
-    make DESTDIR="$pkgdir" PREFIX=/usr install
+    cd "$srcdir/$pkgname-$pkgver/imagequant-sys"
+    cargo cinstall --destdir="$pkgdir" --prefix=/usr --release
     install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list