aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-03-31 20:02:55 +0000
committerAndy Postnikov <apostnikov@gmail.com>2018-04-02 00:07:02 +0300
commit30753d19666f0cc6c0f334ce216944061ab40060 (patch)
tree956a7c5a8ec4088a45a60fcc01f5dc48c21be228
parentf8490e36df5a02a3e51eef011a54feef3cf09073 (diff)
downloadaports-30753d19666f0cc6c0f334ce216944061ab40060.tar.bz2
aports-30753d19666f0cc6c0f334ce216944061ab40060.tar.xz
community/jpegoptim: clarify license, modernize
-rw-r--r--community/jpegoptim/APKBUILD17
1 files changed, 7 insertions, 10 deletions
diff --git a/community/jpegoptim/APKBUILD b/community/jpegoptim/APKBUILD
index acacbfc93e..28d7c04211 100644
--- a/community/jpegoptim/APKBUILD
+++ b/community/jpegoptim/APKBUILD
@@ -3,16 +3,16 @@
pkgname=jpegoptim
pkgver=1.4.5
pkgrel=0
-pkgdesc="Utility to optimize jpeg files"
+pkgdesc="JPEG optimization utility"
url="https://github.com/tjko/jpegoptim"
arch="all"
-license="GPL-2.0"
+license="GPL-2.0-or-later"
depends=""
makedepends="libjpeg-turbo-dev"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tjko/jpegoptim/archive/RELEASE.$pkgver.tar.gz"
-builddir="$srcdir/"$pkgname-RELEASE.$pkgver
+builddir="$srcdir/$pkgname-RELEASE.$pkgver"
prepare() {
cd "$builddir"
@@ -26,17 +26,14 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--target=$CTARGET \
- --prefix=/usr/ \
- --mandir=/usr/share/man/ \
- || return 1
- make || return 1
- make strip || return 1
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
- return 0
+ make DESTDIR="$pkgdir" install
}
sha512sums="bf19c9e298889bdf8980d5523b0828f7e9dd2287ead94373e87bff8f425969ef630db7b83f94781c325db10ac6393cea2492a139f34894d363142c747a07c47e jpegoptim-1.4.5.tar.gz"