blob: d7ed6fcc63efe18d3723f38f72f27c23bf18481c (
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: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=pik-git
pkgver=r115.gbe30e6e
pkgrel=2
pkgdesc="A new lossy image format for the internet"
arch=('i686' 'x86_64')
url="https://github.com/google/pik"
license=('Apache')
depends=('glibc' 'libjpeg' 'libpng')
makedepends=('git')
provides=("pik=$pkgver")
conflicts=('pik')
source=("git+https://github.com/google/pik.git")
sha256sums=('SKIP')
prepare() {
cd "pik"
git submodule update --init --recursive
}
pkgver() {
cd "pik"
_rev=$(git rev-list --count --all)
_hash=$(git rev-parse --short HEAD)
printf "r%s.g%s" "$_rev" "$_hash"
}
build() {
cd "pik"
make
}
package() {
cd "pik"
install -d "$pkgdir/usr"
install -Dm755 bin/{cpik,dpik} -t "$pkgdir/usr/bin"
}
|