forked from KadeArchive/Kade-Engine
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPKGBUILD
68 lines (57 loc) · 1.56 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
# Maintainer: Joel Robert Justiawan <[email protected]>
pkgname='lastfunkinmoments-git' # '-bzr', '-git', '-hg' or '-svn'
pkgver=2022.07.0
pkgrel=1
# longdesc = "Last Funkin Moments. Enjoy til the last drop of funkin. A fork of Kade Engine by Kade which itself is a fork of Friday Night Funkin' by Cameron Taylor (ninjamuffin)"
pkgdesc="A mod of FNF freshly forked from Kade Engine"
arch=('x86_64')
url="https://github.com/Perkedel/Kaded-fnf-mods"
license=('GPL3')
depends=(
'vlc'
)
# optdepends=(
# 'vlc'
# )
makedepends=(
'git'
'haxe'
)
source=("$pkgname")
noextract=()
md5sums=('SKIP')
# changelog=
pkgver() {
cd ..
# Comprehensive Git pls
# https://wiki.archlinux.org/title/VCS_package_guidelines#The_pkgver()_function
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd ..
pwd
ls
# cd "$pkgname"
arch-btw/prepare-haxe.sh
# API placeholder pls
wget https://gist.github.com/JOELwindows7/ba79db473ab5e4765293fb19c62240cb/raw/d5fc74359ec9ae272003c5d715d04b4dbbd7810d/GJkeys.hx
mv -n ./GJkeys.hx "source/GJKeys.hx"
}
build() {
cd ..
arch-btw/build-now.sh
}
check() {
cd ..
arch-btw/btw-check.sh
}
package() {
cd ..
install -Dm755 -d ./export/release/linux/bin "$pkgdir/usr/bin/LastFunkinMoments"
install -Dm644 ./README.md "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 ./LICENSE "$pkgdir/user/share/licenses/$pkgname/LICENSE"
}