summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16a29adf92466df29e6bc2b7f35997c3a00570ed (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
# Maintainer: Sebastian Wiesner <sebastian@swsnr.de>
pkgname=wcal-git
pkgver=r15.24ad672
pkgdesc='ISO weekly calendar'
pkgrel=1
license=('custom:CC0')
arch=("$CARCH")
url='https://github.com/leahneukirchen/wcal'
depends=('glibc')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
    # Use once wcal tags:
    #printf "%s" "$(git describe --all --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
    cd "$srcdir/${pkgname%-git}"
    make all
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make PREFIX="/usr/" DESTDIR="$pkgdir/" install
}