summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f453d006ba502f8a7f6a8f16dcf052e917c9ff26 (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
34
35
36
37
38
39
40
41
42
43
# Maintainer: Richard Cesar <richard.cesar@netkeepers.cz>

pkgname=flexibee-client
pkgver=2024.2.10
pkgbasever=2024.2
pkgrel=1
pkgdesc="Accounting economic system for person and business usage. Client-only package."
arch=('i686' 'x86_64')
url="http://www.flexibee.eu"
license=('custom')
depends=('glibc' 'jre8-openjdk')
install=flexibee.install
source=("https://download.flexibee.eu/download/$pkgbasever/$pkgver/flexibee-client_${pkgver}_all.deb")

sha256sums=('3cb1b3e19165e108e82b297480768a60c661c291e0ee286a04b4d2f8c8a0d8cb')

prepare() {
    cd ${srcdir}
    mkdir $pkgname-$pkgver
    tar -vxzf data.tar.gz -C ./$pkgname-$pkgver
    sed -i 's/^# FLEXIBEE_JAVA=$/FLEXIBEE_JAVA=\/usr\/lib\/jvm\/java-8-openjdk\/jre\/bin\/java/' ./$pkgname-$pkgver/etc/default/flexibee
}

package() {

    cd ${srcdir}/$pkgname-$pkgver

    # Prepare /etc
    install -d -m 755 "${pkgdir}/etc/flexibee"
    install -d -m 755 "${pkgdir}/etc/default"
    install -m 644 ./etc/default/flexibee "${pkgdir}/etc/default/"

    # Prepare /usr/bin -> install executables
    install -d -m 755 "${pkgdir}/usr/bin"
    install -m 755 ./usr/bin/* "${pkgdir}/usr/bin/"

    # Install everything in /usr/share
    install -d -m 755 "${pkgdir}/usr/share"
    find ./usr/share/ -type d -exec install -d -m 755 {} "${pkgdir}/{}" \;
    find ./usr/share/ -type f -exec install -m 664 {} "${pkgdir}/{}" \;
}