diff options
author | Stephan Brunner | 2021-09-01 15:44:38 +0200 |
---|---|---|
committer | Stephan Brunner | 2021-09-01 15:44:38 +0200 |
commit | 0b465d64f3d0b01a63a26ca3859655bc5444ebec (patch) | |
tree | 59af34e985bd8592274fa48e938bdb9f9a658dae | |
download | aur-0b465d64f3d0b01a63a26ca3859655bc5444ebec.tar.gz |
version 1.8.1b9
-rw-r--r-- | .SRCINFO | 37 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..31e2746348ee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,37 @@ +pkgbase = chataigne-beta-bin + pkgdesc = Artist-friendly Modular Machine for Art and Technology. + pkgver = 1.8.1b9 + pkgrel = 1 + url = https://benjamin.kuperberg.fr/chataigne/en + arch = x86_64 + license = GPL3 + depends = zlib + depends = hicolor-icon-theme + depends = fuse2 + depends = curl + depends = bluez-libs + depends = freetype2 + depends = libx11 + depends = libxinerama + depends = libxrandr + depends = libxcursor + depends = libxcomposite + depends = mesa + depends = alsa-lib + depends = freeglut + depends = jack + depends = gtk3 + depends = webkit2gtk + depends = sdl2 + depends = libusb + depends = hidapi + depends = nss + depends = ttf-bitstream-vera + depends = libcurl-gnutls + conflicts = chataigne-stable-bin + noextract = Chataigne-linux-x64-1.8.1b9.AppImage + options = !strip + source_x86_64 = Chataigne-linux-x64-1.8.1b9.AppImage::https://benjamin.kuperberg.fr/chataigne/user/data/Chataigne-linux-x64-1.8.1b9.AppImage + sha256sums_x86_64 = 23f8a2c35504bedcd7a22dc2214523efd467214265705cb463c8eb972efbc3f2 + +pkgname = chataigne-beta-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3ce5e2db252b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Based off of: https://daveparrish.net/posts/2019-11-16-Better-AppImage-PKGBUILD-template.html +# Maintainer: Stephan Brunner <stepbrunner@gmail.com> + +_pkgname=chataigne +_Pkgname=Chataigne + +pkgname="${_pkgname}"-beta-bin +pkgver=1.8.1b9 +pkgrel=1 +pkgdesc="Artist-friendly Modular Machine for Art and Technology." +arch=('x86_64') +url="https://benjamin.kuperberg.fr/chataigne/en" +license=('GPL3') +depends=('zlib' 'hicolor-icon-theme' 'fuse2' 'curl' 'bluez-libs' 'freetype2' 'libx11' 'libxinerama' 'libxrandr' 'libxcursor' 'libxcomposite' 'mesa' 'alsa-lib' 'freeglut' 'jack' 'gtk3' 'webkit2gtk' 'sdl2' 'libusb' 'hidapi' 'nss' 'ttf-bitstream-vera' 'libcurl-gnutls') +conflicts=(chataigne-stable-bin) +options=(!strip) +_appimage="${_Pkgname}-linux-x64-${pkgver}.AppImage" +source_x86_64=("${_appimage}::https://benjamin.kuperberg.fr/chataigne/user/data/${_appimage}") +noextract=("${_appimage}") +sha256sums_x86_64=('23f8a2c35504bedcd7a22dc2214523efd467214265705cb463c8eb972efbc3f2') + +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}|"\ + "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" + + # Icon images + install -dm755 "${pkgdir}/usr/share/pixmaps" + cp -a "${srcdir}/squashfs-root/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/" + + # Symlink executable + install -dm755 "${pkgdir}/usr/bin" + ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_Pkgname}" +} |