blob: e9f834427634889b0abe08bcfc52f44aea86d55f (
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
43
|
# Maintainer:
_pkgname="knusperli"
pkgname="$_pkgname-git"
pkgver=r11.415439b
pkgrel=1
pkgdesc='A deblocking JPEG decoder'
url="https://github.com/google/knusperli"
license=('Apache')
arch=('x86_64')
depends=(
'gcc-libs'
)
makedepends=(
'bazel'
'git'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# bazel crashes with newer versions of openjdk
PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH"
cd "$_pkgsrc"
CC=gcc bazel build :knusperli
}
package() {
cd "$_pkgsrc"
install -Dm755 "bazel-bin/knusperli" -t "$pkgdir/usr/bin/"
}
|