summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 1b72beca8340faa06b7bebf68ac747b847bc3a74 (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
# Maintainer: Uwe Koloska <kolewu@koloro.de>

_appname=sieve-app
pkgname=${_appname}-bin
pkgver=0.6.1
pkgrel=1
pkgdesc="Sieve script editor app version"
arch=('x86_64')
url="https://github.com/thsmi/sieve/"
license=('AGPL-3.0')

_zip="sieve-${pkgver}-linux-x64.zip"
source=("https://github.com/thsmi/sieve/releases/download/${pkgver}/${_zip}"
		"${_appname}.desktop")
sha256sums=('8b146c4681d6395c146d20e6337db6ad58d098bf6621b7c79d48cc81d7c82abe'
            'cdd12628fcd3ff6d23cbb746e6cbdacc441fc93ed223796ef6db144b152f14a1')

package() {
  install -d -m0755 "${pkgdir}/"{opt/"${_appname}",usr/bin}
  
  # the contents of the source file are extracted directly at the top level...
  # thus, remove the zip so we can install the rest
  rm "${_zip}"
  cp -a --no-preserve=ownership * "${pkgdir}/opt/${_appname}"
  
  chmod -R o+rX "${pkgdir}/opt/${_appname}"
  ln -s "/opt/${_appname}/sieve" "${pkgdir}/usr/bin/sieve"
  install -D -m0644 "${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
}