summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8379c05c7e37d01fe0553ced832b8497b742fb49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=geometrize-bin
pkgver=1.0.1
pkgrel=1
pkgdesc="A desktop app that geometrizes images into geometric primitives"
arch=('x86_64')
url='https://www.geometrize.co.uk'
license=('GPL')
provides=('geometrize')
depends=('zlib')
makedepends=('gendesk')
options=('!strip')
noextract=("${pkgname%-bin}-${pkgver}.AppImage")
source=("${pkgname%-bin}-${pkgver}.AppImage::https://github.com/Tw1ddle/geometrize/releases/download/v${pkgver}/geometrize_${pkgver}_linux.AppImage")
sha256sums=('b2d586029fb9371e1c96869e15b65fceb5ef96fd99f58242e914552ad288a242')

package() {
  chmod 755 ./${pkgname%-bin}-${pkgver}.AppImage
  ./${pkgname%-bin}-${pkgver}.AppImage --appimage-extract
  install -Dm644 squashfs-root/Geometrize.png "${pkgdir}/usr/share/pixmaps/geometrize.png"
  gendesk -f -n --pkgname "${pkgname%-bin}" \
          --pkgdesc "$pkgdesc" \
          --name "Geometrize" \
          --comment "$pkgdesc" \
          --exec "${pkgname%-bin}" \
          --categories 'Graphics;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}/opt/${pkgname%-bin}/${pkgname%-bin}.AppImage"
  ln -s /opt/geometrize/${pkgname%-bin}.AppImage "${pkgdir}/usr/bin/geometrize"
}