diff options
Diffstat (limited to 'main/jpeg/APKBUILD')
-rw-r--r-- | main/jpeg/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/jpeg/APKBUILD b/main/jpeg/APKBUILD new file mode 100644 index 000000000..19d620c0e --- /dev/null +++ b/main/jpeg/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Carlo Landmeter <clandmeter at gmail> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=jpeg +pkgver=8 +pkgrel=5 +pkgdesc="JPEG image tools" +url="http://www.ijg.org/" +arch="all" +license="AS-IS" +depends= +makedepends= +install= +subpackages="$pkgname-doc $pkgname-dev libjpeg" +source="http://www.ijg.org/files/jpegsrc.v${pkgver}.tar.gz" + +_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 +} + +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 +} + +libjpeg() { + pkgdesc="JPEG image library" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libjpeg* "$subpkgdir"/usr/lib/ +} + + +md5sums="9c6b3514e922ad42298706163bb5e2d7 jpegsrc.v8.tar.gz" |