summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3cbaaab4be775ad82cdae176f0bba65ffe16acfb (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
# Maintainer: Ruben Solvang <post@rubensolvang.no>
pkgname=bas21-bin
pkgver=1.4.6
pkgrel=1
pkgdesc="A norwegian accounting and invoice system"
arch=('x86_64')
url=https://bas21.no
license=('custom')
makedepends=('gendesk' 'icoutils')
sha256sums=('14d365c6dfdec55ea05009f4ee58ed7ac1f22dc2f09261304bafbb7d4a89cf0b')
options=('!strip')
source=("https://download.bas21.no/bas21/bas21-$pkgver.tar.xz")

prepare() {
  gendesk -f -n --pkgname "${pkgname%-bin}" --pkgdesc "$pkgdesc" --name='BAS21'
  icotool -x "${srcdir}/${pkgname%-bin}-${pkgver}/bascore.ico" --index=1
}

package() { 
  install -d "${pkgdir}/opt/${pkgname%-bin}"
  cp -a "bas21-${pkgver}/"* "${pkgdir}/opt/${pkgname%-bin}"

  install -d "${pkgdir}/usr/bin"
  ln -s "/opt/${pkgname%-bin}/bas21" "${pkgdir}/usr/bin/${pkgname%-bin}"

  install -Dm644 "${srcdir}/bascore_1_256x256x32.png" "${pkgdir}/usr/share/icons/${pkgname%-bin}.png"
  install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
}