blob: 26c0a475e86a3388afc6a4006419c4e6fc90224a (
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
52
53
54
55
56
|
# Maintainer: Torben Schweren <torben@schweren.dev>
# I copied some things over from Shayne Hartford's PKGBUILD for Wootility: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wootility-lekker-appimage
pkgname=wootomation-appimage
pkgver=1.1.0
pkgrel=1
pkgdesc="A macro application by Wooting. (AppImage version)"
arch=('x86_64')
url="https://github.com/WootingKb/wooting-macros"
license=('GPL3')
#
release=${pkgver}
appname=wootomation
filename=${appname}_${pkgver}_amd64.AppImage
inappimage_binaryname=${appname}
inappimage_desktopname=${appname}.desktop
inappimage_iconname=${appname}.png
depends=('webkit2gtk' 'libayatana-appindicator')
#makedepends=()
#checkdepends=()
#optdepends=()
#provides=()
#conflicts=()
#replaces=()
#backup=()
options=(!strip)
install=${appname}.install
#changelog=
source=(
"https://github.com/WootingKb/wooting-macros/releases/download/v$pkgver/${filename}"
"wootomation.install"
)
#noextract=()
md5sums=(
"30d5b8117842021838057b5323d06eee"
"defcfc94f57a12c877fcd840f7f8140c"
)
#validpgpkeys=()
prepare() {
chmod +x ./${filename}
./${filename} --appimage-extract usr/bin/${inappimage_binaryname}
./${filename} --appimage-extract ${inappimage_desktopname}
./${filename} --appimage-extract ${inappimage_iconname}
./${filename} --appimage-extract usr/share/icons
}
#build() {}
#check() {}
package() {
install -Dpm755 "squashfs-root/usr/bin/${inappimage_binaryname}" "${pkgdir}/usr/bin/${inappimage_binaryname}" # Install the binary from the AppImage to the host
install -Dpm644 "squashfs-root/${inappimage_desktopname}" "${pkgdir}/usr/share/applications/${inappimage_desktopname}" # Installs the .desktop file from the AppImage to the host
install -Dpm644 "squashfs-root/${inappimage_iconname}" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${inappimage_iconname}" # Installs the icon from the AppImage to the host
}
|