blob: 28d7c04211cc0ba99f14fae1fbcf166ee85abfd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Aji Kisworo Mukti <aji.kisworo.mukti@gmail.com>
# Maintainer: Aji Kisworo Mukti <aji.kisworo.mukti@gmail.com>
pkgname=jpegoptim
pkgver=1.4.5
pkgrel=0
pkgdesc="JPEG optimization utility"
url="https://github.com/tjko/jpegoptim"
arch="all"
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"
prepare() {
cd "$builddir"
default_prepare
update_config_sub
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--target=$CTARGET \
--prefix=/usr \
--mandir=/usr/share/man
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="bf19c9e298889bdf8980d5523b0828f7e9dd2287ead94373e87bff8f425969ef630db7b83f94781c325db10ac6393cea2492a139f34894d363142c747a07c47e jpegoptim-1.4.5.tar.gz"
|