diff options
author | Eder Trujillo | 2022-01-24 00:14:41 -0600 |
---|---|---|
committer | Eder Trujillo | 2022-01-24 00:14:41 -0600 |
commit | 0baedaf80efad85e6ab372a54797e59fea38bc58 (patch) | |
tree | 9937ae8231bf62710a15e2d7e57e8aeaecb9f97b | |
parent | 6ae59ce1a280691a26e442fe7661d494bda1e18a (diff) | |
download | aur-0baedaf80efad85e6ab372a54797e59fea38bc58.tar.gz |
Fixed permission issues
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 30 insertions, 16 deletions
@@ -7,8 +7,7 @@ pkgbase = mindomo-bin license = custom:mindomo provides = mindomo conflicts = mindomo - source = mindomo-bin.desktop - sha256sums = c40dd838c3bd6ab7ef91f530d73dcb5f0c7313743769c7bb498cbe5d4131b4e1 + noextract = source_x86_64 = https://www.mindomo.com/download/10.1/Mindomo_v.10.1.7_x64.AppImage sha256sums_x86_64 = d0a3f12ce9e28f449751a4e964a3b84e2e008bebcc8037e1ab3309f1aa44a357 @@ -1,8 +1,8 @@ # Maintainer: Narinas <eatrujillo@protonmail.com> pkgname=mindomo-bin +_pkgname=mindomo pkgver=10.1.7 -basever=10.1 pkgrel=1 pkgdesc="Mindomo is an online collaborative mind mapping, concept mapping and outlining software for visualizing and organizing information." arch=('x86_64') @@ -10,26 +10,41 @@ url="https://www.mindomo.com" license=('custom:mindomo') provides=('mindomo') conflicts=('mindomo') +_basever=10.1 +_app_image="Mindomo_v.${pkgver}_x64.AppImage" +noextract=("${_appimage}") -app_image="Mindomo_v.${pkgver}_x64.AppImage" +#source=("$pkgname.desktop") -source=("$pkgname.desktop") -sha256sums=('c40dd838c3bd6ab7ef91f530d73dcb5f0c7313743769c7bb498cbe5d4131b4e1') - -source_x86_64=("https://www.mindomo.com/download/${basever}/${app_image}") +source_x86_64=("https://www.mindomo.com/download/${_basever}/${_app_image}") +#sha256sums=('c40dd838c3bd6ab7ef91f530d73dcb5f0c7313743769c7bb498cbe5d4131b4e1') sha256sums_x86_64=('d0a3f12ce9e28f449751a4e964a3b84e2e008bebcc8037e1ab3309f1aa44a357') +prepare() { + chmod +x "$_app_image" + ./"${_app_image}" --appimage-extract +} +build() { + 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() { - # bin -> opt - install -d "${pkgdir}"{/opt/$pkgname,/usr/bin} - install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -dm755 "${pkgdir}/opt/${pkgname}/" + cp -r "${srcdir}/${_app_image}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage" - cp -r "${srcdir}/${app_image}" "${pkgdir}/opt/${pkgname}/${app_image}" - chmod -R 755 "${pkgdir}/opt/${pkgname}/" + # Desktop file + install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop"\ + "${pkgdir}/usr/share/applications/${_pkgname}.desktop" - # symlink - ln -s "${pkgdir}/opt/${pkgname}/${app_image}" "${pkgdir}/usr/bin/mindomo" - chmod +x "${pkgdir}/usr/bin/mindomo" + # 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}.AppImage" "${pkgdir}/usr/bin/${_pkgname}" } + |