summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ea52b2e5ce954a8361428e09106007af77de8a8 (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
_pkgname=weidu
pkgname=$_pkgname-git
pkgver=v246.00.88.g387e9a8
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 weidu weinstall tolower -j1
}

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