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

makedepends=("ocaml" "elkhound-git")
arch=("x86_64")

conflicts=("weidu-bin" "weidu")

url="https://github.com/WeiDUorg/weidu"
pkgdesc="WeiDU is a program used to develop, distribute and install modifications for games based on the Infinity Engine."

license=("GPLv2")

source=("git+https://github.com/WeiDUorg/weidu#branch=devel")

sha256sums=("SKIP")

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

prepare() {
    cd "$srcdir/weidu"
    cp sample.Configuration Configuration
}

build() {

    cd "$srcdir/weidu" 
    make -j1
}

package() {
    cd "$srcdir/weidu"
    install -D -m=0755 weidu.asm.exe "$pkgdir/usr/bin/weidu"
}