diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..39240cc10952 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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.0.2 +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=('fuse2') +#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=( + "8ad1843421d29c20d46c1e62a442cf6f" + "10a101af0f9b1c08996eade78f8e30e7" +) +#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 +} |