blob: 9f22e2e25913c6339f365457a444325d2f1ea790 (
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
|
# Maintainer: HLFH <gaspard@dhautefeuille.eu>
pkgname=dolibarr
pkgver=19.0.2
pkgrel=1
pkgdesc="Dolibarr ERP CRM: modern software package to manage your company"
arch=('any')
url="https://dolibarr.org/"
license=('GPL3')
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')
backup=("etc/$pkgname/conf.php")
install=dolibarr.install
source=("http://downloads.sourceforge.net/project/$pkgname/Dolibarr%20ERP-CRM/$pkgver/$pkgname-$pkgver.tgz"
dolibarr.conf
nginx.conf.example
apache.conf.example)
b2sums=('a303e78329a1d474953c54f27e2219a09173acd2303674a4118968a94ffeb7f85d51d676e3ffdb9059fa5213e1522b64015720a11bf6ab710fb2cc951bb6caf8'
'e78f127924e37c9d5910ec3081cf0b13d79c58e6350f499261380cffd0ee0023e2488e20e24d0463c01548694c80e45e79b27efc9a81a3458e96c050dce7211d'
'6ab4f2b86e9db40c91a0db181421594b78deccaac8d45c851f8d61a2999bdd14b84ac11018356728d1ec6ec0215094a6658ab5b74960f37a67e1d089c4ed61ac'
'8bb3823afee0515931cfbd4ddc8714ccab29f3d46fa249554670cce9d5ed79b8645515cc758edf3293c40bd9a7917bc1ae8664e3bd6b6a2a1502379b4257f499')
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-$pkgver/htdocs/conf/conf.php.example" >"$pkgname-$pkgver/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-$pkgver"
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"
}
|