blob: 5d2773e40e5cfc5b42a86d4be6ee9b787b2567cd (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Maintainer: Helloagain <nospamming11+arch at gmail dot com>
pkgname=fakturama
pkgver=2.1.0.e
pkgrel=2
pkgdesc="Creates invoices with ZUGFeRD support"
arch=('x86_64')
url="https://www.fakturama.info"
license=('EPL')
groups=()
depends=(
'java-runtime=8'
'webkit2gtk'
)
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
# "$pkgname-$pkgver.tar.gz::https://bitbucket.org/fakturamadev/fakturama-2/downloads/Installer_Fakturama_linux_x64_${pkgver}.tar.gz"
"$pkgname-$pkgver.tar.gz::https://files.fakturama.info/release/v2.1.0/Installer_Fakturama_linux_x64_2.1.0e.tar.gz"
"fakturama2.desktop"
)
noextract=()
sha256sums=(
"f930260f04dec2aae3e347c1007e636b64f5504c1f84dced6d4814575af34519"
"550964ece2b39f76e4985ecc2203fee63f57ef669d8b1ae170d80b3cfa5cb54c"
)
prepare() {
cd $srcdir
# Copied from linux PKGBUILD as an easy way to apply all *.patch files
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}
package() {
# Get prefixed application directory
_main_application="$pkgdir/usr/share/${pkgname}2"
# Create entry under _main_application
install -m 755 -d "$_main_application"
chmod u+w,g+w,o+w -R "$_main_application"
# Copy all needed files
cp -r "$srcdir/artifacts.xml" "$_main_application"
cp -r "$srcdir/configuration" "$_main_application"
cp -r "$srcdir/Fakturama" "$_main_application"
cp -r "$srcdir/Fakturama.ini" "$_main_application"
cp -r "$srcdir/features" "$_main_application"
cp -r "$srcdir/p2" "$_main_application"
cp -r "$srcdir/plugins" "$_main_application"
# special folder that needs special permissions
chmod u+w,g+w,o+w -R "$_main_application/configuration"
chmod u+w,g+w,o+w -R "$_main_application/features"
chmod u+w,g+w,o+w -R "$_main_application/plugins"
chmod u+w,g+w,o+w -R "$_main_application/p2"
# Copy other files
install -Dm 644 "$srcdir/icon.xpm" "$pkgdir/usr/share/pixmaps/fakturama2.xpm"
install -Dm 644 "$srcdir/fakturama2.desktop" "$pkgdir/usr/share/applications/fakturama2.desktop"
}
|