diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-28 11:01:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-28 11:01:37 +0000 |
commit | bc9cf3fa2723cb6f9c331072cc36b9ce04ac3ce0 (patch) | |
tree | ac02f3341d338181fcf220807fb23e5295c4fddc /main/jpeg/APKBUILD | |
parent | 14c21425abbcc63a35fc29432ddb22c66330ae09 (diff) | |
download | aports-bc9cf3fa2723cb6f9c331072cc36b9ce04ac3ce0.tar.bz2 aports-bc9cf3fa2723cb6f9c331072cc36b9ce04ac3ce0.tar.xz |
main/jpeg: make it a wrapper for libjpeg-turbo
Diffstat (limited to 'main/jpeg/APKBUILD')
-rw-r--r-- | main/jpeg/APKBUILD | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/main/jpeg/APKBUILD b/main/jpeg/APKBUILD index 19d620c0e..6d073e731 100644 --- a/main/jpeg/APKBUILD +++ b/main/jpeg/APKBUILD @@ -2,40 +2,35 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=jpeg pkgver=8 -pkgrel=5 -pkgdesc="JPEG image tools" +pkgrel=6 +pkgdesc="Wrapper for libjpeg-turbo" url="http://www.ijg.org/" -arch="all" +arch="noarch" license="AS-IS" -depends= +depends="libjpeg-turbo-utils" makedepends= install= -subpackages="$pkgname-doc $pkgname-dev libjpeg" -source="http://www.ijg.org/files/jpegsrc.v${pkgver}.tar.gz" +subpackages="$pkgname-dev libjpeg" +source="" _builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --enable-shared - make || return 1 + mkdir -p "$_builddir" } package() { - cd "$_builddir" - make -j1 install DESTDIR="$pkgdir" || return 1 - rm "$pkgdir"/usr/lib/*.la || return 1 - install -Dm644 jpegint.h "$pkgdir"/usr/include/jpegint.h + mkdir -p "$pkgdir" } libjpeg() { - pkgdesc="JPEG image library" - install -d "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/libjpeg* "$subpkgdir"/usr/lib/ + pkgdesc="Wrapper for libjpeg-turbo" + depends="libjpeg-turbo" + mkdir -p "$subpkgdir" } +dev() { + pkgdesc="Wrapper for libjpeg-turbo-dev" + depends="libjpeg-turbo-dev" + mkdir -p "$subpkgdir" +} -md5sums="9c6b3514e922ad42298706163bb5e2d7 jpegsrc.v8.tar.gz" |