New package: libimagequant-2.8.2

This commit is contained in:
Alessio Sergi 2017-01-16 19:42:42 +01:00
parent b604628629
commit 346d4938d0
3 changed files with 38 additions and 0 deletions

View File

@ -2769,3 +2769,4 @@ libelogind.so.0 elogind-219.12_1
libnma.so.0 libnm-gtk-1.4.0_1
libgspell-1.so.1 gspell-1.0.0_1
libotf.so.0 libotf-0.9.13_1
libimagequant.so.0 libimagequant-2.8.2_1

1
srcpkgs/libimagequant-devel Symbolic link
View File

@ -0,0 +1 @@
libimagequant

View File

@ -0,0 +1,36 @@
# Template file for 'libimagequant'
pkgname=libimagequant
version=2.8.2
revision=1
build_style=configure
configure_args="--with-openmp"
make_build_target="static shared"
makedepends="libgomp-devel"
short_desc="Palette quantization library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pngquant.org/lib/"
license="GPL-3"
distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz"
checksum=0c1532456f273cc759932b3869e76161ac87b1fcbbd525c2478b0d0262a98d5f
case "$XBPS_TARGET_MACHINE" in
x86_64*) configure_args+=" --enable-sse";;
*) configure_args+=" --disable-sse";;
esac
do_install() {
vinstall libimagequant.h 644 usr/include
vinstall libimagequant.a 644 usr/lib
vinstall libimagequant.so.0 755 usr/lib
ln -sf libimagequant.so.0 ${DESTDIR}/usr/lib/libimagequant.so
}
libimagequant-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}