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

pkgname=bitrot-git
pkgver=r16.06a72cd
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' 'glibc')
makedepends=('git' 'waf')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("git+https://github.com/grejppi/bitrot.git"
        "git+https://github.com/grejppi/DPF.git#branch=custom")
md5sums=('SKIP'
         'SKIP')

pkgver() {
    cd "${pkgname%-*}"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "${pkgname%-*}"

    git submodule init
    git config submodule.libs/DPF.url "$srcdir/DPF"
    git -c protocol.file.allow=always submodule update

    waf configure --prefix="/usr" 
}

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

    waf
}

package() {
    cd "${pkgname%-*}"

    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    waf install --destdir="$pkgdir"
}