diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-06-12 22:46:08 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-14 10:37:40 +0000 |
commit | c4b5ae6ff9d398c5cf6c7c9f726e8ee746d52dd3 (patch) | |
tree | 3a3fd2ea9d3a228861e66e14b00ee2335ee3aac5 /community/jpegoptim | |
parent | 832558c1d69f62f95fa2a92dac62b64b78bd02b0 (diff) | |
download | aports-c4b5ae6ff9d398c5cf6c7c9f726e8ee746d52dd3.tar.bz2 aports-c4b5ae6ff9d398c5cf6c7c9f726e8ee746d52dd3.tar.xz |
community/jpegoptim: move from testing
Diffstat (limited to 'community/jpegoptim')
-rw-r--r-- | community/jpegoptim/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/jpegoptim/APKBUILD b/community/jpegoptim/APKBUILD new file mode 100644 index 0000000000..9b668002a9 --- /dev/null +++ b/community/jpegoptim/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Aji Kisworo Mukti <aji.kisworo.mukti@gmail.com> +# Maintainer: Aji Kisworo Mukti <aji.kisworo.mukti@gmail.com> +pkgname=jpegoptim +pkgver=1.4.4 +pkgrel=0 +pkgdesc="Utility to optimize jpeg files" +url="https://github.com/tjko/jpegoptim" +arch="all" +license="GPL2" +depends="" +makedepends="libjpeg-turbo-dev" +options="!check" +subpackages="$pkgname-doc" +source="https://github.com/tjko/jpegoptim/archive/RELEASE.$pkgver.tar.gz" +builddir="$srcdir"/$pkgname-RELEASE.$pkgver + +prepare() { + cd "$builddir" + default_prepare + update_config_sub +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --target=$CTARGET \ + --prefix=/usr/ \ + --mandir=/usr/share/man/ \ + || return 1 + make || return 1 + make strip || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + return 0 +} + +sha512sums="4152dcbf703737228187326f831610006852717260d7e3908275b6a54f5f02ef786a4560ff7485cc0326d38312e2b499ea83749c849736b9cd069884b882a27c RELEASE.1.4.4.tar.gz" |