diff options
author | kleintux | 2022-12-29 13:55:01 +0100 |
---|---|---|
committer | kleintux | 2022-12-29 13:55:01 +0100 |
commit | 2c51e86ef053bb990cf8132a499d3b2aadf9bff9 (patch) | |
tree | 8e8f086acd4040fbe6ed1f82505b143ae5ad1b72 | |
download | aur-2c51e86ef053bb990cf8132a499d3b2aadf9bff9.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e869116054e9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = overte-appimage + pkgdesc = Overte open source virtual worlds platform. + pkgver = 2022.12.1 + pkgrel = 1 + url = https://github.com/overte-org/overte + arch = x86_64 + license = APACHE + noextract = overte-appimage-2022.12.1.AppImage + options = !strip + source_x86_64 = overte-appimage-2022.12.1.AppImage::https://github.com/overte-org/overte/releases/download/2022.12.1/Overte-2022.12.1-x86_64.AppImage + sha256sums_x86_64 = dd99465cdac958f85be98378b1db6c12e8e19b114bbbe0d69e5ea1fb09fdd948 + +pkgname = overte-appimage diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ef95b555638d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch> + +_pkgname=overte +pkgname=${_pkgname}-appimage +pkgver=2022.12.1 +pkgrel=1 +pkgdesc="Overte open source virtual worlds platform. " +arch=('x86_64') +url="https://github.com/overte-org/overte" +license=('APACHE') +options=(!strip) +_appimage="${pkgname}-${pkgver}.AppImage" +source_x86_64=("${_appimage}::https://github.com/overte-org/overte/releases/download/${pkgver}/Overte-${pkgver}-x86_64.AppImage") +noextract=("${_appimage}") +sha256sums_x86_64=('dd99465cdac958f85be98378b1db6c12e8e19b114bbbe0d69e5ea1fb09fdd948') + +prepare() { + chmod +x "${_appimage}" + ./"${_appimage}" --appimage-extract +} + +build() { + # Adjust .desktop so it will work outside of AppImage container + sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname^} %u|"\ + "squashfs-root/${_pkgname^}.desktop" + # Fix permissions; .AppImage permissions are 700 for all directories + chmod -R a-x+rX squashfs-root/usr +} + +package() { + # AppImage + install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage" + + # Desktop file + install -Dm644 "${srcdir}/squashfs-root/${_pkgname^}.desktop"\ + "${pkgdir}/usr/share/applications/${_pkgname^}.desktop" + + # Symlink executable + install -dm755 "${pkgdir}/usr/bin" + ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname^}" +} |