blob: 4655b62bacda77463b52644def693e5555c86055 (
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
|
# Maintainer: Blessing-Studio
# Contributor: mail_set
pkgname=wonderlab
pkgver=1.0.1.6
pkgrel=1
pkgdesc="下一代跨平台 Minecraft 启动器"
arch=('x86_64')
url="https://github.com/Blessing-Studio/WonderLab"
license=('MIT')
depends=('dotnet-runtime-6.0')
options=('!strip' '!emptydirs')
source=("https://github.com/Blessing-Studio/WonderLab/releases/download/${pkgver}/linux-${arch}.deb")
sha512sums=('SKIP')
package(){
# Extract package data
tar -xJ -f data.tar.xz -C "${pkgdir}"
# Fix directory structure differences
cd "${pkgdir}"
mkdir usr/bin 2> /dev/null; mv usr/local/bin/* usr/bin; rm -rf usr/local/bin
ls usr/share/applications/*.desktop | while read line; do
sed -i s'/^Exec=\/usr\/local\/bin\//Exec=\/usr\/bin\//g' "$line"
done
rm -rf usr/local
cd ..
}
|