blob: 184ceced8aa3abe170f27d7b227ac73bb862ea72 (
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
49
50
51
|
# Maintainer: Thaodan <AUR+me@thaodan.de>
pkgname=warcraftlogsuploader
pkgdesc='Warcraft Logs Uploader'
_electron=electron
pkgver=5.8.4
pkgrel=1
arch=('any')
url='https://github.com/RPGLogs/Uploaders-warcraftlogs'
license=('custom')
makedepends=('asar')
depends=($_electron sh)
source=("$url/releases/download/v$pkgver/Warcraft-Logs-Uploader-$pkgver.AppImage" "warcraftlogsuploader.desktop")
sha512sums=('06df2e6e7325ccc1522978bd90c71b1dafab20e35d053fcef337f318b9d0b97c1987fc7de815fd5e378ae7afdce04d8db8bcdb2fb320de8565f2cd0e4f87e99f'
'2362bd563e08e20a75d7c8942574d43fe08ae04d68ddc4f20b64d6e6fc315c6b106b78cb3fb07e2361930584353e3a23b69322939c94edef075af8a74ba26086')
prepare() {
:
}
build() {
local _source0=${source[0]##*/}
chmod +x $_source0
./$_source0 --appimage-extract
asar extract squashfs-root/resources/app.asar $pkgname
sed -e 's/showDevTools: true/showDevTools: false/' -i $pkgname/main.js
cat > warcraftlogsuploader.sh <<EOF
#!/bin/sh
exec $_electron /usr/lib/$pkgname "\$@"x
EOF
chmod +x warcraftlogsuploader.sh
}
package() {
install -dm 755 "$pkgdir"/usr/lib/$pkgname
cp --archive --no-preserve=ownership\
$pkgname "$pkgdir"/usr/lib
install -Dm644 $pkgname/LICENSE.md "$pkgdir"/usr/share/licenses/$appname/LICENSE.md
rm "$pkgdir"/usr/lib/$pkgname/LICENSE.md
install -dm755 "$pkgdir"/usr/share/icons/hicolor
install -Dm755 warcraftlogsuploader.sh "$pkgdir"/usr/bin/warcraftlogsuploader
cp --archive \
--no-preserve=ownership \
squashfs-root/usr/share/icons/hicolor/* "$pkgdir"/usr/share/icons/hicolor
find "$pkgdir"/usr/share/icons/hicolor -type d -exec chmod 755 {} \;
install -Dm644 warcraftlogsuploader.desktop "$pkgdir"/usr/share/applications/warcraftlogsuploader.desktop
}
|