blob: 29adc6a1ef7204bc6fa53d3e50c30ec13da70c16 (
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
52
53
54
55
56
|
# Maintainer: envolution
# Contributor: Jan Cholasta <grubber at grubber cz>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=slade-git
pkgver=3.2.6+r3068+g6054a2d59
pkgrel=1
pkgdesc='SLADE3 Doom editor (git version)'
arch=('i686' 'x86_64')
url='http://slade.mancubus.net/'
license=('GPL')
depends=('bzip2'
'fluidsynth>=2.3'
'freeimage'
'ftgl'
'glu'
'libgl'
'lua'
'mpg123'
'sfml>=2.6'
'webkit2gtk-4.1'
'wxwidgets-gtk3>=3.2'
'zlib')
makedepends=('cmake'
'git'
'p7zip')
provides=('slade')
conflicts=('slade')
source=('slade::git+https://github.com/sirjuddington/SLADE.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/slade"
_version=$(git tag --sort=-v:refname --list | head -n1)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version}+r${_commits}+g${_short_commit_hash}"
}
build() {
cd slade
export CCACHE_SLOPPINESS=pch_defines,time_macros
cmake -D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
.
make
}
package() {
cd slade
make install DESTDIR="$pkgdir"
}
# vim: ts=2 sw=2 et:
# vim:set ts=2 sw=2 et:
|