summaryrefslogtreecommitdiff
path: root/libre/gnucash/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/gnucash/PKGBUILD')
-rw-r--r--libre/gnucash/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/libre/gnucash/PKGBUILD b/libre/gnucash/PKGBUILD
new file mode 100644
index 000000000..07bf06d0d
--- /dev/null
+++ b/libre/gnucash/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 299071 2017-06-20 16:53:25Z juergen $
+# Maintainer (AUR): Jörg Schuck <joerg_schuck@web.de>
+# Contributor (AUR): Juergen Hoetzel <juergen@archlinux.org>
+# Contributor (AUR): Mark Schneider <queueRAM@gmail.com>
+
+pkgname=gnucash
+pkgver=3.0
+pkgrel=4
+pkgdesc="A personal and small-business financial-accounting application"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.gnucash.org"
+license=("GPL")
+depends=('libmariadbclient' 'postgresql-libs' 'aqbanking' 'webkit2gtk' 'boost-libs' 'libsecret' 'libdbi-drivers' 'guile')
+makedepends=('boost' 'gmock' 'gwenhywfar' 'cmake')
+optdepends=(
+ 'gnucash-docs: for documentation'
+ 'iso-codes: for translation of currency names'
+ 'perl-finance-quote: for stock information lookups'
+ 'perl-date-manip: for stock information lookups'
+)
+options=('!emptydirs')
+source=(
+ http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+)
+sha1sums=('a575e853668b93b34dcd94f0ef0d1fee25b0165f')
+sha256sums=('4c754476a5b80a97abacaeadac64fefc5a68fcfec15967908dbe3c9f7370dbb9')
+sha512sums=('5ec13b8abe1520a7e614ceeca4c41d5dba3ebae4ec965918584963022ceb5cb3b85862289a85a72767db74a0c735214a78342a53c37e6da939ff850538174a87')
+backup=(
+ 'etc/gnucash/environment'
+)
+
+prepare() {
+ cd "${srcdir}"
+
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
+ -DCOMPILE_GSCHEMAS=NO \
+ -DWITH_OFX=ON \
+ -DWITH_AQBANKING=ON \
+ "${srcdir}/${pkgname}-${pkgver}"
+
+}
+
+build() {
+ cd "${srcdir}/build"
+
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}" install
+
+ # Delete the gnucash-valgrind executable because the source files
+ # are not included with the package and the executable is hardlinked
+ # to the location that it was built at.
+ rm -f "${pkgdir}"/usr/bin/gnucash-valgrind
+
+}