blob: 25227e961a3471bd3ae24ad649e13aba2455fb8e (
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
|
# Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
pkgname=woff2-git
pkgver=r99.2855ee7
pkgrel=1
pkgdesc="Font compression reference code"
arch=('i686' 'x86_64')
url="https://github.com/google/woff2"
license=('Apache')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/google/woff2.git")
md5sums=('SKIP')
pkgver()
{
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build()
{
cd "$srcdir/${pkgname%-git}"
git submodule init
git submodule update
make clean all
}
package()
{
cd "$srcdir/${pkgname%-git}"
for bin in woff2_compress woff2_decompress
do
install -m 755 -D "$bin" "${pkgdir}/usr/bin/$bin"
done
}
|