blob: 4128ae47e34aa233c0716d896cdc6b73de238ae5 (
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
47
48
49
50
|
_pkgname=weidu
pkgname=$_pkgname-git
pkgver=1
pkgrel=1
makedepends=("ocaml")
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/elkhound"
"git+https://github.com/WeiDUorg/weidu#branch=devel")
sha256sums=("SKIP" "SKIP")
pkgver() {
cd "$srcdir/weidu"
git describe --always | sed "s|-|.|g"
}
prepare() {
cd "$srcdir/elkhound/src"
./configure
cd "$srcdir/weidu"
cp sample.Configuration Configuration
}
build() {
cd "$srcdir/elkhound/src"
make -j1
cd "$srcdir/weidu"
export PATH="$srcdir/elkhound/src/elkhound:$PATH"
export OCAMLPARAM="safe-string=0,_"
make -j1
}
package() {
cd "$srcdir/weidu"
install -D -m=0755 weidu.asm.exe "$pkgdir/usr/bin/weidu"
}
|