diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 51 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c48137aed96f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = fantasia-archive-appimage + pkgdesc = A database manager for world building + pkgver = 0.1.10 + pkgrel = 1 + url = https://github.com/Elvanos/fantasia-archive + arch = x86_64 + license = unknown + depends = hicolor-icon-theme + depends = glibc + depends = zlib + options = !strip + source = https://github.com/Elvanos/fantasia-archive/releases/download/v0.1.10/Fantasia.Archive-0.1.10-linux-appimage.zip + sha512sums = 1790c000741fb18a5cc5cf1af931487340685e58c0e50e9c8284c1617c787f7a7a2cc45e648f53ce890aba542887f3cdafc214124609c04c2c42baee7bd2d44b + +pkgname = fantasia-archive-appimage diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a8e6ea7d83f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!/.gitignore +!/.SRCINFO +!/PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ece2d0c550a2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Alexander Daum <alexander.daum at mailbox dot org> + +pkgname='fantasia-archive-appimage' +pkgver=0.1.10 +pkgrel=1 +pkgdesc='A database manager for world building' +url='https://github.com/Elvanos/fantasia-archive' +zipname="Fantasia.Archive-${pkgver}-linux-appimage.zip" +appimgname="Fantasia.Archive-${pkgver}-linux-appImage.AppImage" # NOTE: differs from zipname by capital I in -appImage +options=(!strip) # necessary otherwise the AppImage file in the package is truncated + +depends=( + 'hicolor-icon-theme' + 'glibc' + 'zlib' +) + +license=( + 'unknown' +) +source=( + "https://github.com/Elvanos/fantasia-archive/releases/download/v${pkgver}/${zipname}" +) +sha512sums=( + '1790c000741fb18a5cc5cf1af931487340685e58c0e50e9c8284c1617c787f7a7a2cc45e648f53ce890aba542887f3cdafc214124609c04c2c42baee7bd2d44b' +) +arch=( + 'x86_64' +) + +_appimg_root="squashfs-root" +_desktop_file="$_appimg_root/fantasiaarchive.desktop" +_icons="$_appimg_root/usr/share/icons/" +prepare() { + # extract appimage + chmod +x "$srcdir/${appimgname}" + $srcdir/$appimgname --appimage-extract 'usr/share/icons/hicolor/*/apps/fantasiaarchive.png' + $srcdir/$appimgname --appimage-extract 'fantasiaarchive.desktop' + sed -i 's+AppRun+/usr/bin/FantasiaArchive.AppImage+g' "squashfs-root/fantasiaarchive.desktop" +} + +package() { + install -D "${srcdir}/${appimgname}" "${pkgdir}/usr/bin/FantasiaArchive.AppImage" + install -Dm644 "$srcdir/$_desktop_file" "${pkgdir}/usr/share/applications/fantasiaarchive.desktop" + # Install all icons, command install doesn't work with directories + install -dm755 "${pkgdir}/usr/share/icons" + cp -dpr --no-preserve=ownership "$srcdir/$_icons" "${pkgdir}/usr/share" + # Fix permissions, dirs should be 755 and icon files 644 + chmod -R 755 "${pkgdir}/usr/share/icons" + find "${pkgdir}/usr/share/icons" -type f -exec chmod 644 {} \; +} |