blob: 5bead34f3a3a7963793f9350063817c097d9b3be (
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: FTS427 <FTS427@outlook.com>
# Contributor: AllayMC <https://github.com/AllayMC>
pkgname=allay-launcher-git
_pkgname=allay
pkgver=1.1.0.r0.g1dca77e
pkgrel=2
pkgdesc="The launcher for Allay that aims to be small, fast and ready out of the box⚡"
arch=('x86_64' 'aarch64')
url=https://github.com/AllayMC/AllayLauncher
license=('LGPL3')
conflicts=('allay-launcher')
optdepends=('jre-openjdk: for Java enviroment')
makedepends=('git' 'xmake' 'gcc' 'gzip' 'tar' 'cmake' 'curl' 'nim' 'zig' 'unzip')
source=("$pkgname::git+$url.git#tag=1.1.0"
"allay.1")
sha256sums=(
'2a5342f74ea17afb3a4fadc13a6e7d43f9b9eb4604ae13e85d58cecee76bd647'
'ef7d618595d5f9eced792956646bf504dcd4f17e1ae9588f0234863d39ad5eb0')
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname"
if [[ -z "$(git config --get user.name)" ]]; then
git config user.name local && git config user.email '<>' && git config commit.gpgsign false
fi
}
build() {
cd "$pkgname"
xmake repo -u
if [ "$arch" == x86_64 ]; then
xmake f -a amd64 -m release -p linux -v -y
else
xmake f -a arm64-v8a -m release -p linux -v -y
fi
xmake -v -y
}
package() {
install -Dm 644 "$_pkgname.1" "$pkgdir/usr/share/man/man1/$_pkgname.1"
cd "$pkgname"
if [ "$arch" == x86_64 ]; then
install -Dm 755 "build/linux/amd64/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
else
install -Dm 755 "build/linux/arm64-v8a/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
fi
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|