blob: c5831875c2d48a277c339a62c1719fce7252f7f4 (
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
|
pkgname=lugaru
pkgver=1.2
pkgrel=2
pkgdesc="A third-person action game featuring a unique close-range combat system"
url="https://osslugaru.gitlab.io"
license=('GPL')
arch=('i686' 'x86_64')
depends=('sdl2' 'glu' 'libjpeg-turbo' 'libpng' 'openal' 'libvorbis' 'zlib')
makedepends=('cmake')
conflicts=('lugaru-hg' 'lugaruhd-hg' 'lugaro-git')
source=("https://gitlab.com/osslugaru/lugaru/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
"${pkgname}.desktop")
sha256sums=('b165ff8948f634fc788dc29b9269746340a290fc2101d843e270190a49c2ef00'
'c97bbd82701c07692f35fd86d0a4b4fdb2d5380a5672dde75617ae15389bfd15')
build() {
cd ${srcdir}/${pkgname}-${pkgver}/
mkdir build || true
cd build
cmake -DSYSTEM_INSTALL=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_INSTALL_DATADIR=share \
-DCMAKE_INSTALL_MANDIR=share/man \
..
make
}
package() {
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
cd ${srcdir}/${pkgname}-${pkgver}/build
make DESTDIR="$pkgdir/" install
}
|