diff options
author | Mason Jones | 2022-11-24 21:40:55 -0800 |
---|---|---|
committer | Mason Jones | 2022-11-24 22:04:57 -0800 |
commit | 79732b684542e2570c873110dd6e11ebc6b55e84 (patch) | |
tree | e9274f4440be6152819e1bdef3e5b06838cf50ac | |
download | aur-79732b684542e2570c873110dd6e11ebc6b55e84.tar.gz |
Initial PKGBUILD
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c828c89301b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = loopauditioneer-appimage + pkgdesc = Software for loop and cue handling in .wav files. + pkgver = 0.9.66 + pkgrel = 4 + url = https://sourceforge.net/projects/loopauditioneer/ + arch = x86_64 + license = GPL3 + depends = zlib + depends = hicolor-icon-theme + noextract = loopauditioneer-appimage-0.9.66.AppImage + options = !strip + source_x86_64 = loopauditioneer-appimage-0.9.66.AppImage::https://sourceforge.net/projects/loopauditioneer/files/LoopAuditioneer-0.9/LoopAuditioneer-0.9.66-x86_64.AppImage + sha256sums_x86_64 = 3bc78e025eefc6ed4491acd7d7baa22e9dbf2f52475e9bd97c615e6009c1ff30 + +pkgname = loopauditioneer-appimage diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5e7ebb28278c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Mason Jones <myemail@domain.me> + +_pkgname=loopauditioneer +_pkgname_orig=LoopAuditioneer +_pkgver_maj_min=0.9 + +pkgname="${_pkgname}"-appimage +pkgver=0.9.66 +pkgrel=1 +pkgdesc="Software for loop and cue handling in .wav files." +arch=('x86_64') +url="https://sourceforge.net/projects/loopauditioneer/" +license=('GPL3') +depends=('zlib' 'hicolor-icon-theme') +options=(!strip) +_appimage="${pkgname}-${pkgver}.AppImage" +source_x86_64=("${_appimage}::https://sourceforge.net/projects/loopauditioneer/files/LoopAuditioneer-${_pkgver_maj_min}/LoopAuditioneer-${pkgver}-x86_64.AppImage") +noextract=("${_appimage}") +sha256sums_x86_64=('3bc78e025eefc6ed4491acd7d7baa22e9dbf2f52475e9bd97c615e6009c1ff30') + +prepare() { + chmod +x "${_appimage}" + ./"${_appimage}" --appimage-extract +} + +build() { + # Adjust .desktop so it will work outside of AppImage container (and with the bin rename) + sed -i -E "s|Exec=LoopAuditioneer|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname}|"\ + "squashfs-root/${_pkgname_orig}.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_orig}.AppImage" + + # Desktop file + install -Dm644 "${srcdir}/squashfs-root/${_pkgname_orig}.desktop"\ + "${pkgdir}/usr/share/applications/${_pkgname_orig}.desktop" + + # Icon images + install -dm755 "${pkgdir}/usr/share/" + cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/" + + # Symlink executable + install -dm755 "${pkgdir}/usr/bin" + ln -s "/opt/${pkgname}/${_pkgname_orig}.AppImage" "${pkgdir}/usr/bin/${_pkgname}" +} |