summaryrefslogtreecommitdiff
path: root/user/jpegoptim/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-09 20:44:19 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-09 20:44:19 +0000
commit60d9542a45f4c83dda92d185e4409f36be0208d9 (patch)
tree4062a24f2e9b911c835f28c3fa64c5e38aa6e0ff /user/jpegoptim/APKBUILD
parent6d38d52c5cb59d2fbce84da070bacfc0ab77eb39 (diff)
downloadpackages-60d9542a45f4c83dda92d185e4409f36be0208d9.tar.gz
packages-60d9542a45f4c83dda92d185e4409f36be0208d9.tar.bz2
packages-60d9542a45f4c83dda92d185e4409f36be0208d9.tar.xz
packages-60d9542a45f4c83dda92d185e4409f36be0208d9.zip
user/jpegoptim: new package
Diffstat (limited to 'user/jpegoptim/APKBUILD')
-rw-r--r--user/jpegoptim/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/jpegoptim/APKBUILD b/user/jpegoptim/APKBUILD
new file mode 100644
index 000000000..d86c9c7f8
--- /dev/null
+++ b/user/jpegoptim/APKBUILD
@@ -0,0 +1,39 @@
+# 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() {
+ cd "$builddir"
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="1ebd4986cbfeae19c1e01521862c15de25e078ccb6483c29f0d89b9c8e308c93d8dca7a200a57dd5da793e481ca5dc9c4f0d84b252f5b9408b4e719c35d7e90f jpegoptim-1.4.6.tar.gz"