summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 8 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad388931133..61071f4a0fc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,9 +6,7 @@ pkgbase = archifiltre-bin
arch = x86_64
license = MIT
makedepends = gendesk
- depends = zlib
provides = archifiltre
- options = !strip
source = archifiltre-2.1.1.tar.gz::https://github.com/SocialGouv/archifiltre/releases/download/v2.1.1/archifiltre.tar.gz
source = LICENSE::https://github.com/SocialGouv/archifiltre/raw/master/LICENSE
sha256sums = 689cfd97dd09906f70d140cc6816d9b08c0ab3773eb2096fae494469eb21a97d
diff --git a/PKGBUILD b/PKGBUILD
index 70414b26dc5..f9364ecaf37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,8 +8,6 @@ arch=('x86_64')
url='https://archifiltre.fabrique.social.gouv.fr'
license=('MIT')
provides=("${pkgname%-bin}")
-options=('!strip')
-depends=('zlib')
makedepends=('gendesk')
source=("${pkgname%-bin}-${pkgver}.tar.gz::https://github.com/SocialGouv/archifiltre/releases/download/v${pkgver}/archifiltre.tar.gz"
'LICENSE::https://github.com/SocialGouv/archifiltre/raw/master/LICENSE')
@@ -19,17 +17,20 @@ sha256sums=('689cfd97dd09906f70d140cc6816d9b08c0ab3773eb2096fae494469eb21a97d'
package() {
chmod 755 ./${pkgname%-bin}-${pkgver}.AppImage
./${pkgname%-bin}-${pkgver}.AppImage --appimage-extract
- install -Dm644 squashfs-root/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png "${pkgdir}/usr/share/pixmaps/ananas-desktop.png"
+ install -Dm644 squashfs-root/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png "${pkgdir}/usr/share/pixmaps/archifiltre.png"
gendesk -f -n --pkgname "${pkgname%-bin}" \
--pkgdesc "$pkgdesc" \
--name "Archifiltre" \
--comment "$pkgdesc" \
- --exec "${pkgname}" \
- --categories 'Utility;Application;' \
+ --exec "${pkgname%-bin}" \
+ --categories 'Utility;Application' \
--icon "${pkgname%-bin}"
install -Dm644 "${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -d "${pkgdir}/usr/bin"
- install -Dm755 "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" "${pkgdir}/usr/share/${pkgname%-bin}/${pkgname}.AppImage"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- ln -s /usr/share/${pkgname%-bin}/${pkgname}.AppImage "${pkgdir}/usr/bin/${pkgname%-bin}"
+ install -d "${pkgdir}/usr/bin"
+ install -d "${pkgdir}/opt"
+ cp -avR squashfs-root/ "${pkgdir}/opt/${pkgname%-bin}"
+ ln -s /opt/${pkgname%-bin}/AppRun "${pkgdir}/usr/bin/${pkgname%-bin}"
+ find "${pkgdir}/opt/${pkgname%-bin}" -type d -exec chmod 755 {} +
} \ No newline at end of file