-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPKGBUILD
49 lines (40 loc) · 1.15 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
# Maintainer: Mitchel Stewart <[email protected]>
pkgname=neko_launcher_neo
pkgver=2.2.5.r82.g8ed5b51
pkgrel=1
pkgdesc='A game launcher for visual novels and more'
arch=('x86_64')
url='https://github.com/Neko-Services/neko_launcher_neo'
license=('AGPL-3.0')
makedepends=('git')
depends=('flutter')
optdepends=()
provides=('neko_launcher_neo')
conflicts=()
source=("git+https://github.com/Neko-Services/neko_launcher_neo")
sha256sums=('SKIP')
pkgver() {
cd "neko_launcher_neo"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
# Enable desktop build
flutter channel stable
flutter config --enable-linux-desktop
# Get dependencies
cd "neko_launcher_neo"
flutter clean
flutter pub get
}
build() {
cd "neko_launcher_neo"
flutter build linux
}
package() {
cd "neko_launcher_neo"
mkdir -p "${pkgdir}/usr/share/neko_launcher_neo"
mkdir -p "${pkgdir}/usr/bin"
cp -fr build/linux/x64/release/bundle/* "${pkgdir}/usr/share/neko_launcher_neo"
ln -sr "${pkgdir}/usr/share/neko_launcher_neo/neko_launcher_neo" "${pkgdir}/usr/bin/neko_launcher_neo"
chmod 755 "${pkgdir}/usr/bin/neko_launcher_neo"
}