blob: e91fa4e741845b63a936836d8aeed22085b56c39 (
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
|
# Maintainer: Nicolas F. <aur@fratti.ch>
pkgname=zopfli-git
pkgver=1.0.3.r7.g831773b
pkgrel=3
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/google/zopfli"
pkgdesc="Compression algorithm library, git version"
license=('Apache')
makedepends=('git' 'cmake')
depends=('glibc' 'gcc-libs')
source=('git+https://github.com/google/zopfli.git')
provides=('libzopfli.so' 'libzopflipng.so')
replaces=('zopflipng-git' 'libzopfli-git' 'libzopflipng-git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/zopfli"
git describe --tag | sed -r 's/zopfli-//; s/([^-]*-g)/r\1/; s/-/./g'
}
build() {
cd "$srcdir/zopfli"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DZOPFLI_BUILD_SHARED=ON \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
package() {
cd "$srcdir/zopfli"
make -C build DESTDIR="${pkgdir}" install
install -vDm 644 README* -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
|