blob: 9b668002a95f7d2c97db3ca05fae341715aa2406 (
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
40
41
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"
|