blob: 0bd8accdd274e713ae3af57489979028d6c3bcd5 (
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
|
# Maintainer: Jan-Niklas Tomski <jan-niklas at tomski dot me>
_pkgname='wootility'
pkgname="${_pkgname}5-beta"
pkgver='5.3.0_beta.2'
_appimage="${_pkgname^}-${pkgver//_/-}.AppImage"
pkgrel=1
pkgdesc="Utility for configuring Wooting keyboards (AppImage beta release)"
arch=(any)
url='https://wooting.io/wootility'
license=('unknown')
depends=('fuse2')
makedepends=('util-linux' 'findutils')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
options=(!strip)
source=("${_appimage}::https://api.wooting.io/public/wootility/download?os=linux&version=${pkgver//_/-}"
'70-wooting.rules')
noextract=("${_appimage}")
b2sums=('8bd32790b099781bd6253b51f19b4c73c93fbf22485b5fef13c5ecc52e2e9f2f805fe6170fe54baa57f3d0339148cbeba6b50343e369bced20a18d07d8d602da'
'80b4a516f8aafb6eada36cdde59295f2358b22e6cc28b1a21b0b5f22a59bcfabc63bba956d23544faca5fd76a1c4b4c1ff98ada41e7c9ad015d48c7c436dbac1')
prepare() {
# Copying AppImage in case $SRCDEST is mounted with noexec
cp "${_appimage}" "${_appimage}.copy"
chmod +x "${_appimage}.copy"
"./${_appimage}.copy" --appimage-extract "${_pkgname^}.desktop"
"./${_appimage}.copy" --appimage-extract usr/share/icons
rm "${_appimage}.copy"
}
build() {
sed -i -E "s|Exec=AppRun|Exec=${_pkgname}|" "squashfs-root/${_pkgname^}.desktop"
# Fix permissions; .AppImage permissions are 700 for all directories
chmod -R a-x+rX "${srcdir}/squashfs-root/usr"
}
package() {
install -Dpm755 "${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}"
install -d "${pkgdir}/usr/bin"
ln -s "../../opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}"
# Install desktop entry and icon
install -Dpm644 "squashfs-root/${_pkgname^}.desktop" "${pkgdir}/usr/share/applications/${_pkgname^}.desktop"
install -d "${pkgdir}/usr/share/"
cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
# Install udev rules
install -Dpm644 "70-wooting.rules" "${pkgdir}/usr/lib/udev/rules.d/70-wooting.rules"
}
|