makedeb
GNU/Linux packaging solution using the AppImage format
Click here to go back to the commit logs for appimage-builder.
Hash: af449ff56ca7f52a4a23f0a25e1e93c6f382a741
Message: Unpack so appimage-builder works in Docker containers
diff --git a/.SRCINFO b/.SRCINFO
index 24a973b..f217333 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = appimage-builder
pkgbase = appimage-builder
pkgdesc = GNU/Linux packaging solution using the AppImage format
-pkgrel = 1
+pkgrel = 2
pkgver = 1.1.0
url = https://appimage-builder.readthedocs.io/
arch = amd64
diff --git a/PKGBUILD b/PKGBUILD
index cfdd1bf..8f96443 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
pkgname=appimage-builder
pkgver=1.1.0
-pkgrel=1
+pkgrel=2
pkgdesc='GNU/Linux packaging solution using the AppImage format'
arch=('amd64')
depends=('libfuse2')
@@ -12,8 +12,16 @@ url='https://appimage-builder.readthedocs.io/'
source=("https://github.com/AppImageCrafters/appimage-builder/releases/download/v${pkgver}/appimage-builder-${pkgver}-x86_64.AppImage")
sha256sums=('4b4f99cae9291d78ba12dbdabca7c0a67c72aa61eb2e5d424089171a9485e96f')
+build() {
+ chmod +x "${pkgname}-${pkgver}-x86_64.AppImage"
+ "./${pkgname}-${pkgver}-x86_64.AppImage" --appimage-extract
+}
+
package() {
- install -Dm 755 "./${pkgname}-${pkgver}-x86_64.AppImage" "${pkgdir}/usr/bin/${pkgname}"
+ cd squashfs-root/
+ mkdir -p "${pkgdir}/opt/${pkgname}" "${pkgdir}/usr/bin"
+ find ./ -mindepth 1 -maxdepth 1 -exec cp -r '{}' "${pkgdir}/opt/${pkgname}/{}" \;
+ ln -s "/opt/${pkgname}/AppRun" "${pkgdir}/usr/bin/${pkgname}"
}
# vim: set sw=4 expandtab: