blob: e59b20d0326c5343714f9962440141197a7bad25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=libimagequant-git
pkgver=4.1.1.r11.gdc3e6d1
pkgrel=1
pkgdesc="Palette quantization library"
arch=('i686' 'x86_64')
url="https://pngquant.org/lib/"
license=('custom')
depends=('glibc')
makedepends=('git')
provides=("libimagequant=$pkgver")
conflicts=('libimagequant')
options=('staticlibs')
source=("git+https://github.com/ImageOptim/libimagequant.git")
sha256sums=('SKIP')
pkgver() {
cd "libimagequant"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "libimagequant"
./configure \
--prefix="/usr" \
--with-openmp
make \
libimagequant.so \
static
}
package() {
cd "libimagequant"
make DESTDIR="$pkgdir" install
install -Dm644 "COPYRIGHT" -t "$pkgdir/usr/share/licenses/libimagequant"
}
|