summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e77e650a8729987839316e2c94840ab6c5988e9b (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
# Maintainer: Patrick Desaulniers <desaulniers dot patrick at carrefour dot cegepvicto dot ca>

pkgname=bitrot-git
pkgver=r15.70534bc
pkgrel=1
pkgdesc="Bitrot audio plugins (LV2, VST2 and LADSPA)"
arch=('i686' 'x86_64')
url="https://github.com/grejppi/bitrot.git"
license=('Apache')
depends=('gcc-libs')
makedepends=('git' 'python')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("${pkgname%-*}::git+https://github.com/grejppi/bitrot.git")
md5sums=('SKIP')

pkgver() {
    cd "${pkgname%-*}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "${pkgname%-*}"
    git submodule update --init --recursive
    ./waf configure --prefix="/usr" 
}

build() {
    cd "${pkgname%-*}"
    ./waf
}

package() {
    cd "${pkgname%-*}"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    ./waf install --destdir="$pkgdir"
}