blob: 136736438caf2e88c501633779f93c32c4199a13 (
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
|
# Maintainer: Deltachaos <mr@deltachaos.de>
pkgname=warcraftlogsuploader
_pkgapp=warcraftlogsuploader
pkgver=8.15.13
pkgrel=1
pkgdesc="warcraftlogs.com desktop client for Linux"
arch=('x86_64')
depends=("fuse2")
conflicts=("warcraftlogsuploader")
url="https://warcraftlogs.com/"
source=("${_pkgapp}-v8.15.13.AppImage::https://github.com/RPGLogs/Uploaders-warcraftlogs/releases/download/v8.15.13/warcraftlogs-v8.15.13.AppImage"
'start')
license=('custom' 'MIT' 'custom:chromium-licenses')
options=(!strip)
# Skip checksum check for the WarcraftLogs binary, to avoid breakage on updates
sha512sums=('8c14893d583ae6c82bcd334dd132a22d08abffc17c99447bb10b18eec99fd012f886b26c74f9d722f05c4e5f4492edcc391f2753f8bba43314ba80c5d708d901'
'1f8d504fb27e815f7efcc8e97672bad12f531d171ab8a08c49439fb4ee63b07e9355c49e56b5fb2eb2f6d202ce56a0526b609fef4b6209832026709002eba22a')
pkgver() {
cd ${srcdir}
chmod +x ${srcdir}/${_pkgapp}-v8.15.13.AppImage
${srcdir}/${_pkgapp}-v8.15.13.AppImage --appimage-extract >/dev/null
cat ${srcdir}/squashfs-root/warcraftlogs.desktop | grep 'X-AppImage-Version' | sed 's!^X-AppImage-Version=!!g'
}
package() {
cd ${srcdir}
chmod +x ${srcdir}/${_pkgapp}-v8.15.13.AppImage
./${_pkgapp}-v8.15.13.AppImage --appimage-extract >/dev/null
sed -i 's/Exec=.*/Exec=\/usr\/bin\/'${_pkgapp}' %U/' squashfs-root/warcraftlogs.desktop
install -Dm755 ${_pkgapp}-v8.15.13.AppImage "${pkgdir}/opt/${_pkgapp}/${_pkgapp}.AppImage"
install -Dm755 "start" "${pkgdir}/usr/bin/${_pkgapp}"
install -dm755 "${pkgdir}/usr/share/applications/"
install -dm755 "${pkgdir}/usr/share/icons/hicolor/512x512/apps/"
install -dm755 "${pkgdir}/usr/share/licenses/${_pkgapp}/"
cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/warcraftlogs.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/"
cp --no-preserve=mode,ownership "${srcdir}/squashfs-root/warcraftlogs.desktop" "${pkgdir}/usr/share/applications/"
for i in ${srcdir}/squashfs-root/LICENSE.* ${srcdir}/squashfs-root/LICENSES.*; do
cp --no-preserve=mode,ownership "${i}" "${pkgdir}/usr/share/licenses/${_pkgapp}"
done
}
|