summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
-rw-r--r--firefly-iii.install4
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d1150e04be8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu Apr 20 08:05:22 UTC 2017
+pkgbase = firefly-iii
+ pkgdesc = PHP personal finances manager
+ pkgver = 4.3.8
+ pkgrel = 1
+ url = https://github.com/dopsi/mdl
+ install = firefly-iii.install
+ arch = any
+ license = custom
+ makedepends = composer
+ depends = php-intl
+ source = firefly-iii-4.3.8.tar.gz::https://github.com/firefly-iii/firefly-iii/archive/4.3.8.tar.gz
+ sha256sums = 47a8096ed23b5a49aa734b9854c70e6c1f991c90acbed904ee2a9c2d0c6d3d57
+
+pkgname = firefly-iii
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d726c4a3c1d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Simon Doppler (dopsi) <dop.simon@gmail.com>
+pkgname=firefly-iii
+pkgver=4.3.8
+pkgrel=1
+pkgdesc='PHP personal finances manager'
+arch=('any')
+url='https://github.com/dopsi/mdl'
+license=('custom')
+depends=('php-intl')
+makedepends=('composer')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('47a8096ed23b5a49aa734b9854c70e6c1f991c90acbed904ee2a9c2d0c6d3d57')
+
+install=$pkgname.install
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -d "$pkgdir/usr/share/webapps" "$pkgdir/usr/share/licenses/$pkgname" "$pkgdir/etc/webapps/$pkgname"
+ php -dextension=intl.so /usr/bin/composer create-project --working-dir "$pkgdir/usr/share/webapps" "grumpydictator/$pkgname" --no-dev --prefer-dist
+ install -D "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+ echo "Start move"
+ mv -v "$pkgdir/usr/share/webapps/$pkgname/.env"* "$pkgdir/etc/webapps/$pkgname"
+ echo "End move"
+
+ for i in '' '.docker' '.example' '.sandstorm' '.testing' ; do
+ echo "$i"
+ mv -v "$pkgdir/etc/webapps/$pkgname/.env$i" "$pkgdir/etc/webapps/$pkgname/config.env$i"
+ ln -sv "../../../../etc/webapps/firefly-iii/config.env$i" "$pkgdir/usr/share/webapps/$pkgname/.env$i"
+ done
+}
+
+# vim:ts=4:sw=4:expandtab
diff --git a/firefly-iii.install b/firefly-iii.install
new file mode 100644
index 00000000000..a8eada5958b
--- /dev/null
+++ b/firefly-iii.install
@@ -0,0 +1,4 @@
+post_install() {
+ chown -R http:http /usr/share/webapps/firefly-iii/storage
+ chmod 775 /usr/share/webapps/firefly-iii/storage
+}