Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Contributor: Joey Smith <joeysmith@gmail.com>
# Maintainer:
pkgname=flif
pkgver=0.3
pkgrel=0
pkgdesc="FLIF is a lossless image format which outperforms PNG, lossless WebP, lossless BPG, lossless JPEG2000, and lossless JPEG XR."
url="https://flif.info"
arch="all"
license="LGPLv3+"
depends="libpng"
makedepends="libpng-dev python3 py3-docopt ninja"
subpackages="$pkgname-dev $pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/FLIF-hub/FLIF/archive/v${pkgver}.tar.gz"
builddir="$srcdir/FLIF-0.3"
build() {
cd "$builddir"
python3 configure.py
make
}
check() {
cd "$builddir"
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" PREFIX="${pkgdir}/usr" install
}
dev() {
cd "$builddir"
mkdir -p "$subpkgdir"/usr/include
for f in src/library/flif.h src/library/flif_enc.h src/library/flif_common.h src/library/flif_dec.h; do
install -D -m644 "${f}" "${subpkgdir}/usr/include"
done
default_dev
}
sha512sums="226f98829db90bda68669a7f00c4bee36a82003ebbc369aa7529b28d5f0dd41d8c0484c39f34a765f03f4d0e9af52a7abe2c673befe8f6961171d327428acf5e flif-0.3.tar.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.