blob: 44a9304b13131b52fd846c90fc915ddfa9348313 (
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
|
# Submitter: Jonas Heinrich <onny@project-insanity.org>
# Maintainer: Witit Sujjapong <switit@gmail.com>
pkgname=invoiceplane
_pkgname=InvoicePlane
pkgver=1.4.6
pkgrel=1
pkgdesc="Self hosted invoicing for freelancers and small businesses"
arch=(any)
url="https://invoiceplane.com/"
license=('MIT')
depends=('php')
#optdepends=('php-mysql: for MySQL database support')
source=("https://github.com/InvoicePlane/InvoicePlane/archive/v1.4.6.tar.gz")
sha512sums=('6bd57bb0ec2c5d04e0ac815bd1da75c175bf50597d5dae7b3b04f8eecd1035f65217e09c56114e930df2219f478df3bea11546ab2003e80d405739bf5f29c9d3')
package() {
# Each of these functions start in the $srcdir already.
# Quote variables to prevent word splitting.
# See <http://mywiki.wooledge.org/Quotes#When_Should_You_Quote.3F>
install -d "$pkgdir"/usr/share/webapps
# Consistency.
install -d "$pkgdir"/etc/webapps/invoiceplane
# Note that -a with --preserve=all only works here as package() is run
# under fakeroot, otherwise you'd use -dr --no-preserve=ownership
cp -a "$_pkgname-$pkgver" "$pkgdir"/usr/share/webapps/invoiceplane
# This is temporarily a broken symlink but will be correct once installed.
file=""$pkgdir"/usr/share/webapps/invoiceplane/application/config/database.php"
if [ -f $file ] ; then
rm $file
fi
ln -s /etc/webapps/invoiceplane/database.php "$pkgdir"/usr/share/webapps/invoiceplane/application/config/database.php
install -Dm644 "$_pkgname-$pkgver"/license.txt "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
|