blob: 6c4a48eb57bafc562c70fd729fbf618e01fbf87e (
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: Ruben Solvang <post@rubensolvang.no>
pkgname=bas21-bin
pkgver=1.7.4
pkgrel=1
pkgdesc="A norwegian accounting and invoice system"
arch=('x86_64')
url=https://bas21.no
license=('custom')
sha256sums=('3bb7fe16637e603e290749e168bf519192700686cffa5d65157ccc424272d675')
options=('!strip')
depends=('openssl>=1.1.1')
source=("https://download.bas21.no/bas21/bas21-$pkgver.arch.tar.xz")
package() {
cd "${srcdir}"
# Install BAS21
install -dm755 "${pkgdir}/opt"
cp --preserve=mode -r "bas21-${pkgver}" "${pkgdir}/opt/bas21"
# Install icons
for res in 128x128 16x16 256x256 32x32 48x48; do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
ln -s "/opt/bas21/res/cencit-bascore-${res}.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/cencit-bascore.png"
done
# Install desktop entry and executable
install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 "bas21-${pkgver}/res/cencit-bas21.desktop" "${pkgdir}/usr/share/applications/bas21.desktop"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/bas21/bas21" "${pkgdir}/usr/bin/bas21"
}
|