blob: ac36f3cb38f4947fa87fe92d5639e96f401c8db0 (
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
|
# Maintainer: HLFH <gaspard@dhautefeuille.eu>
pkgname=dolibarr-git
_pkgname=dolibarr
pkgver=20.0.0.r1243.g3f00ea3d6bf
pkgrel=1
pkgdesc="Dolibarr ERP CRM: modern software package to manage your company"
arch=('any')
url="https://dolibarr.org/"
license=('GPL-3.0-or-later')
makedepends=('git')
depends=('php-legacy' 'php-legacy-gd')
optdepends=('mariadb-clients: MariaDB backend')
optdepends=('postgresql: postgresql backend')
optdepends=('php-legacy-xsl: xlsx export')
optdepends=('php-tcpdf: pdf export')
options=('!strip' 'emptydirs')
conflicts=('dolibarr')
backup=("etc/$_pkgname/conf.php")
install=dolibarr.install
source=(git+https://github.com/Dolibarr/$_pkgname#branch=develop
dolibarr.conf
nginx.conf.example
apache.conf.example)
b2sums=('SKIP'
'e78f127924e37c9d5910ec3081cf0b13d79c58e6350f499261380cffd0ee0023e2488e20e24d0463c01548694c80e45e79b27efc9a81a3458e96c050dce7211d'
'6ab4f2b86e9db40c91a0db181421594b78deccaac8d45c851f8d61a2999bdd14b84ac11018356728d1ec6ec0215094a6658ab5b74960f37a67e1d089c4ed61ac'
'8bb3823afee0515931cfbd4ddc8714ccab29f3d46fa249554670cce9d5ed79b8645515cc758edf3293c40bd9a7917bc1ae8664e3bd6b6a2a1502379b4257f499')
pkgver() {
cd $_pkgname
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/v//;s/-/./g'
}
prepare() {
sed -e "3,5d" \
-e "s|example for ||g" \
-e "s|main_document_root=''|main_document_root='/usr/share/$_pkgname/htdocs'|g" \
-e "s|main_data_root=''|main_data_root='/var/lib/$_pkgname'|g" \
"$_pkgname/htdocs/conf/conf.php.example" >"$_pkgname/htdocs/conf/conf.php"
}
package() {
mkdir -p "$pkgdir/usr/share/$_pkgname"
mkdir -p "$pkgdir/etc/$_pkgname/contrib"
mkdir -p "$pkgdir/var/lib/$_pkgname"
mkdir -p "$pkgdir/usr/share/licenses/$_pkgname"
mkdir -p "$pkgdir/usr/share/doc/$_pkgname"
mkdir -p "$pkgdir/etc/systemd/system/php-fpm-legacy.service.d"
cp *.conf.example "$pkgdir/etc/$_pkgname/contrib/"
cp dolibarr.conf "$pkgdir/etc/systemd/system/php-fpm-legacy.service.d/"
cd "$_pkgname"
cp -ra htdocs "$pkgdir/usr/share/$_pkgname/"
cp -ra scripts "$pkgdir/usr/share/$_pkgname/"
cp COPYING "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
cp -ra doc/* "$pkgdir/usr/share/doc/$_pkgname/"
cp htdocs/conf/conf.php "$pkgdir/etc/$_pkgname/conf.php"
rm "$pkgdir/usr/share/$_pkgname/htdocs/conf/conf.php"
ln -s /etc/$_pkgname/conf.php "$pkgdir/usr/share/$_pkgname/htdocs/conf/conf.php"
}
|