diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-06 00:05:26 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-06 00:05:26 -0500 |
commit | 38724b2f5a798f0c77f83bf4d9626fa0bc07dc9b (patch) | |
tree | 66610e892745e571db8370a1f0ac9b91c19f167b | |
parent | b7063e4bef7df483c30e8462b6cc8d0fcd0d7be7 (diff) | |
download | packages-38724b2f5a798f0c77f83bf4d9626fa0bc07dc9b.tar.gz packages-38724b2f5a798f0c77f83bf4d9626fa0bc07dc9b.tar.bz2 packages-38724b2f5a798f0c77f83bf4d9626fa0bc07dc9b.tar.xz packages-38724b2f5a798f0c77f83bf4d9626fa0bc07dc9b.zip |
user/libjpeg-turbo: pull in, fix brokenness
-rw-r--r-- | user/libjpeg-turbo/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/user/libjpeg-turbo/APKBUILD b/user/libjpeg-turbo/APKBUILD new file mode 100644 index 000000000..27c13e889 --- /dev/null +++ b/user/libjpeg-turbo/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=libjpeg-turbo +pkgver=1.5.3 +pkgrel=2 +pkgdesc="Accelerated JPEG compression and decompression library" +url="https://libjpeg-turbo.org/" +arch="all" +license="IJG AND BSD-3-Clause AND Zlib" +depends="" +makedepends="" +replaces="libjpeg" +subpackages="$pkgname-doc $pkgname-dev $pkgname-utils" +source="https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$pkgver.tar.gz" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-jpeg8 + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" docdir=/usr/share/doc/$pkgname \ + install +} + +utils() { + pkgdesc="Utilities for manipulating JPEG images" + replaces="jpeg" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +doc() { + default_doc + replaces="jpeg-doc" +} + +dev() { + default_dev + replaces="jpeg-dev" +} + +sha512sums="b611b1cc3d1ddedddad871854b42449d053a5f910ed1bdfa45c98e0270f4ecc110fde3a10111d2b876d847a826fa634f09c0bb8c357056c9c3a91c9065eb5202 libjpeg-turbo-1.5.3.tar.gz" |