summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6863401f7429dec66171e4ca1c91d3cb9cc71b8 (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
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=lizard-git
pkgver=1.0.r9.gaf8518c
pkgrel=1
pkgdesc="An efficient compressor with very fast decompression"
arch=('i686' 'x86_64')
url="https://github.com/inikep/lizard"
license=('GPL2' 'BSD')
depends=('glibc')
makedepends=('git')
provides=("lizard=$pkgver")
conflicts=('lizard')
source=("git+https://github.com/inikep/lizard.git")
sha256sums=('SKIP')


pkgver() {
  cd "lizard"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "lizard"

  make
}

check() {
  cd "lizard"

  #make test
}

package() {
  cd "lizard"

  make \
    DESTDIR="$pkgdir" \
    PREFIX="/usr" \
    install
  install -Dm644 "lib/LICENSE" -t "$pkgdir/usr/share/licenses/lizard"
}