summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1c4d09c8b2200a4ca2136623e1ff1cd3272da41 (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
45
# Maintainer: Paco Pascal <me@pacopascal.com>

_pkgname='guile-lzlib'
pkgname="${_pkgname}-git"
pkgver=r6.7a835a5
pkgrel=1
pkgdesc='Guile-lzlib is a GNU Guile library providing bindings to lzlib.'
arch=('x86_64')
url='https://notabug.org/guile-lzlib/guile-lzlib'
license=('GPL3')
depends=('guile' 'lzlib')
makedepends=('git')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=('git+https://notabug.org/guile-lzlib/guile-lzlib.git')
md5sums=('SKIP')

pkgver() {
    # Number of revisions since beginning of the history.
    cd "${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
    cd "${_pkgname}"
    aclocal
    autoconf
    automake --add-missing
}

build() {
    cd "${_pkgname}"
    ./configure --prefix=/usr
    make
}

check() {
    cd "${_pkgname}"
    make check
}

package() {
    cd "${_pkgname}"
    make DESTDIR="${pkgdir}/" install
}