-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
77 lines (60 loc) · 1.63 KB
/
PKGBUILD
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Maintainer: Alexey Ugnichev <[email protected]>
_pkgname=mass-effect-modder
pkgname=${_pkgname}-git
pkgver=418.r1.0e80648
pkgrel=1
pkgdesc="MassEffectModder (MEM), a cross-platform utility to mod Mass Effect family of games."
arch=('x86_64')
url="https://github.com/MassEffectModder/MassEffectModder"
license=('GPL')
groups=()
depends=(
'qt6-base'
)
makedepends=(
'git'
)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
replaces=()
backup=()
options=()
install=
source=(
"${_pkgname}"::'git+https://github.com/MassEffectModder/MassEffectModder.git'
'mass-effect-modder.desktop'
)
noextract=()
md5sums=('SKIP'
'132a540d3f2a5e0fdc37ab1b3720d481')
pkgver() {
cd "${srcdir}/${_pkgname}"
# Git, unannotated tags available
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "${srcdir}/${_pkgname}"
PATH+="${PATH:+:}/usr/lib/qt6/bin"
cd MassEffectModder
qmake
make
}
# TODO: check the check()
#check() {
# cd "${srcdir}/${_pkgname}"
# cd MassEffectModder
# make -k check
#}
package() {
cd "${srcdir}/${_pkgname}"
install -d "${pkgdir}/usr/share/applications"
install -m644 "${srcdir}/mass-effect-modder.desktop" \
"${pkgdir}/usr/share/applications/mass-effect-modder.desktop"
cd MassEffectModder
# NB: not working as install targets are empty upstream (at least for now)
#make DESTDIR="${pkgdir}/" install
install -d "${pkgdir}/usr/bin"
install ./MassEffectModder/MassEffectModder "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/share/icons"
install -m644 ./MassEffectModder/Resources/MEM.png "${pkgdir}/usr/share/icons/MassEffectModder.png"
}