summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee1a4aaaa739d1a3e766a8a47f74c442292f061a (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
_pkgname=elkhound
pkgname=$_pkgname-git
pkgver=git
pkgrel=1


arch=("x86_64")

conflicts=("elkhound-bin" "elkhound")

url="https://github.com/WeiDUorg/elkhound"
pkgdesc="Elkhound, née Elsa/Elkhound, as used by WeiDU"
makedepends=("bison" "flex" "ocaml" "cmake")

license=("custom")

source=("git+https://github.com/WeiDUorg/elkhound")
sha256sums=("SKIP")

pkgver() {
    cd "$srcdir/elkhound"
    git describe --always | sed "s|-|.|g"
}

prepare() {
    cd "$srcdir/elkhound/"

    mkdir -p build

    cd build
    cmake ../src -DCMAKE_BUILD_TYPE=Release \
        -DEXTRAS=OFF \
        -DOCAML=OFF \
        -DBUILD_TESTING=OFF
}

build() {
    cd "$srcdir/elkhound/build"
    make elkhound
}

package() {
    cd "$srcdir/elkhound/build"
    install -D -m=0755 elkhound/elkhound "$pkgdir/usr/bin/elkhound"
}