mirror of
https://github.com/archlinux/aur.git
synced 2026-02-28 18:53:21 +01:00
Version bump to 0.4.7-1
Latest commit message: Update AUR Pipeline and Readme (#2)
This commit is contained in:
commit
5fee5d06cb
2 changed files with 70 additions and 0 deletions
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
pkgbase = wooting-bg-service
|
||||
pkgdesc = Wooting Background Service for Wootility
|
||||
pkgver = 0.4.7
|
||||
pkgrel = 1
|
||||
url = https://wooting.io/wootility
|
||||
arch = x86_64
|
||||
license = unknown
|
||||
depends = glibc
|
||||
depends = fuse2
|
||||
depends = hicolor-icon-theme
|
||||
depends = zlib
|
||||
provides = wooting-bg-service
|
||||
noextract = wooting-bg-service-0.4.7.AppImage
|
||||
options = !strip
|
||||
source = wooting-bg-service-0.4.7.AppImage::https://api.wooting.io/public/bg-service/download-installer?target=linux&version=0.4.7
|
||||
sha256sums = e93a19712a37b75d8ca2315c088a0066fa7dbf84cccddb0265d191c228ef9e62
|
||||
|
||||
pkgname = wooting-bg-service
|
||||
52
PKGBUILD
Normal file
52
PKGBUILD
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# Maintainer: Malte Linke <me@parzival.space>
|
||||
|
||||
pkgname=wooting-bg-service
|
||||
pkgdesc='Wooting Background Service for Wootility'
|
||||
pkgver=0.4.7
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url="https://wooting.io/wootility"
|
||||
license=(unknown)
|
||||
provides=('wooting-bg-service')
|
||||
depends=(glibc fuse2 hicolor-icon-theme zlib)
|
||||
options=(!strip)
|
||||
|
||||
_appImageFile="${pkgname}-${pkgver}.AppImage"
|
||||
_desktopFile="Wooting Background Service.desktop"
|
||||
|
||||
noextract=("${_appImageFile}")
|
||||
source=("${_appImageFile}::https://api.wooting.io/public/bg-service/download-installer?target=linux&version=${pkgver}")
|
||||
sha256sums=("e93a19712a37b75d8ca2315c088a0066fa7dbf84cccddb0265d191c228ef9e62")
|
||||
|
||||
prepare() {
|
||||
# create copy of appimage file in case the build dir is mounted with noexec
|
||||
cp "${_appImageFile}" "${_appImageFile}.copy"
|
||||
chmod +x "${_appImageFile}.copy"
|
||||
|
||||
# extract the appimage
|
||||
./${_appImageFile}.copy --appimage-extract "usr/share/applications"
|
||||
./${_appImageFile}.copy --appimage-extract "usr/share/icons"
|
||||
rm ${_appImageFile}.copy
|
||||
}
|
||||
|
||||
build() {
|
||||
# Adjust .desktop so it will work outside of AppImage container, add Utility category
|
||||
sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${pkgname}|" "squashfs-root/usr/share/applications/${_desktopFile}"
|
||||
echo "Categories=Utility;" >> "squashfs-root/usr/share/applications/${_desktopFile}"
|
||||
|
||||
# Fix permissions; .AppImage permissions are 700 for all directories
|
||||
chmod -R a-x+rX squashfs-root/usr
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 ${_appImageFile} -t "${pkgdir}/opt/${pkgname}"
|
||||
|
||||
# Symlink executable
|
||||
install -d "${pkgdir}/usr/bin/"
|
||||
ln -s /opt/${pkgname}/${_appImageFile} "${pkgdir}/usr/bin/${pkgname}"
|
||||
|
||||
# Install desktop entry and icons
|
||||
install -Dm644 "squashfs-root/usr/share/applications/${_desktopFile}" -t "${pkgdir}/usr/share/applications"
|
||||
install -d "${pkgdir}/usr/share/"
|
||||
cp -a squashfs-root/usr/share/icons "${pkgdir}/usr/share/"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue