blob: 31da04eb7a7db261bc4a33d92a25c26e87f34da6 (
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
51
|
#Maintainer: Evert Vorster <evorster@gmail.com>
pkgname=vegastrike-git
_pkgname=vegastrike
pkgver=0.9.0.alpha1.r128.gcc59c807
pkgrel=1
pkgdesc="Vega Strike - Upon the Coldest Sea. Space flight and trading simulator with realistic distances"
arch=('any')
url="https://www.vega-strike.org"
license=('GPL')
depends=('expat' 'vegastrike-engine')
optdepends=()
makedepends=('git' 'cmake')
provides=('vegastrike')
conflicts=('vegastrike')
#install=$pkgname.install
#options=(!makeflags debug !strip)
source=('git+https://github.com/vegastrike/Assets-Production'
)
sha1sums=('SKIP'
)
pkgver() {
cd "${srcdir}"/Assets-Production
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
# echo "rev.$(git rev-list --count HEAD)"
}
prepare(){
echo "Prepare section"
##Git branching stuff, useful for testing fixes before master
cd ${srcdir}/Assets-Production/
## git checkout -b stephengtuggy-fix/ship_view master
## git pull https://github.com/stephengtuggy/Assets-Production.git fix/ship_view
# git pull origin master
# git checkout master
# git merge origin/task_migrate_save_util
# git push origin master
}
build(){
cmake -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}"/Assets-Production/CMakeLists.txt
}
package() {
mkdir -p "${pkgdir}"
make -C "${srcdir}" DESTDIR="${pkgdir}" install
}
|