summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 555fe78300f2247db4b43033286ca209fc9c8391 (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
# Maintainer: Stuart Reilly <stu@reilly-family.co.uk>
pkgname=dsda-launcher-git
pkgver=v1.3.1.hotfix.r54.73f94ed
pkgrel=2
pkgdesc="Launcher GUI for the dsda-doom source port"
arch=('x86_64')
url="https://github.com/Pedro-Beirao/dsda-launcher"
license=('GPL-3.0-only')
groups=()
depends=('dsda-doom' 'qt6-base' 'glibc' 'gcc-libs')
makedepends=('git' 'qt6-base')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/Pedro-Beirao/dsda-launcher')
noextract=()
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	sed -i 's#/opt/$${TARGET}/bin#/usr/bin#g' src/${pkgname%-git}.pro
}

build() {
	cd "$srcdir/${pkgname%-git}"
	mkdir -p build
	cd build
	qmake6 QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" ../src
	make
}

check() {
	cd "$srcdir/${pkgname%-git}/build"
	make -k check
}

package() {
	cd "$srcdir/${pkgname%-git}/build"
	make INSTALL_ROOT="$pkgdir" install
}