summaryrefslogblamecommitdiff
path: root/user/jpegoptim/APKBUILD
blob: 1556f85525da4ca0acc1c52b566ebd2086f47a79 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16














                                                                   



                         









                                         


                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=jpegoptim
pkgver=1.4.6
pkgrel=0
pkgdesc="Utility to optimise JPEG files"
url="https://www.kokkonen.net/tjko/projects.html"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends="libjpeg-turbo-dev"
subpackages="$pkgname-doc"
source="https://www.kokkonen.net/tjko/src/jpegoptim-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1ebd4986cbfeae19c1e01521862c15de25e078ccb6483c29f0d89b9c8e308c93d8dca7a200a57dd5da793e481ca5dc9c4f0d84b252f5b9408b4e719c35d7e90f  jpegoptim-1.4.6.tar.gz"