[arch-commits] Commit in libimagequant (3 files)
Massimiliano Torromeo
mtorromeo at archlinux.org
Tue Oct 30 10:46:25 UTC 2018
Date: Tuesday, October 30, 2018 @ 10:46:25
Author: mtorromeo
Revision: 399612
archrelease: copy trunk to community-x86_64
Added:
libimagequant/repos/
libimagequant/repos/community-x86_64/
libimagequant/repos/community-x86_64/PKGBUILD
(from rev 399611, libimagequant/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: libimagequant/repos/community-x86_64/PKGBUILD (from rev 399611, libimagequant/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2018-10-30 10:46:25 UTC (rev 399612)
@@ -0,0 +1,29 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=libimagequant
+pkgver=2.12.2
+pkgrel=1
+pkgdesc="Library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images"
+arch=('i686' 'x86_64')
+url="https://pngquant.org/lib/"
+license=('BSD')
+depends=('gcc-libs')
+source=("https://github.com/ImageOptim/libimagequant/archive/$pkgver/libimagequant-$pkgver.tar.gz")
+sha256sums=('23ccecb4898ec17474914cfd2fbc4684425f7fd249117f2f1e3f3ba0bf8159e6')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -r 's/^install:.*/install:/;/install.*STATICLIB/d' -i Makefile
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --with-openmp
+ make shared imagequant.pc
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+ install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list