Created
April 26, 2019 20:00
-
-
Save tml/e467515f8814fdc59de7511e836205ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Joey Smith <[email protected]> | |
# 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