summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTomZ2018-03-08 16:38:52 +0100
committerTomZ2018-03-08 19:56:45 +0100
commit32d62b7d7e740d87f291f9cefa3b88fa781aa21f (patch)
treedd34c151326cc3eb577d100927e1e75e9d14f306 /PKGBUILD
parentb54211026369e580259f20954ef963afb7b9435e (diff)
downloadaur-32d62b7d7e740d87f291f9cefa3b88fa781aa21f.tar.gz
Make this actually compile and install Flowee.
This is a 'git' build.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 43 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 93440488ee7..85d4ab4a409 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,52 @@
# Maintainer: Tom Zander
pkgname=flowee
+pkgver=ecc0613f
pkgrel=1
-pkgver=1.0
-pkgdesc='flowee'
+pkgdesc="Flowee the Hub"
arch=('i686' 'x86_64')
-url="https://flowee.org/"
-license=('GPLv3')
+url="http://flowee.org/"
+license=('GPL')
+depends=('boost-libs' 'libevent' 'openssl')
+makedepends=('boost' 'cmake')
+provides=('flowee-hub')
+backup=("etc/flowee/flowee.conf")
+install=flowee.install
+source=("git+https://github.com/floweethehub/hub.git#branch=master"
+ "flowee.logrotate"
+ "flowee.conf"
+ "logs.conf")
+sha256sums=('SKIP'
+ "d09fe561ed2b5fa0abf40bb5bfce0d6294b3747f97b94b473d040bda7b212985"
+ "bc14acf0d1b4064553756a1e81c0b943e842296f2a2af6442e480b846392e6bc"
+ "635bf93ae346f7a8f4baf61d2d8316aa24647e87d23847876302330cb1e1191b")
+
+pkgver() {
+ cd "$srcdir/hub"
+ git rev-parse --short HEAD
+}
+
+build() {
+ mkdir -p build
+ cd build
+ cmake -Dmark_release=true -Dbuild_tests=true -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/ ../hub
+ make -j1 univalue
+ make
+}
+
+check() {
+ ./build/testing/test/test_hub
+}
package() {
- echo "Soon"
- exit 1
+ cd build
+ make install
+ cd "$pkgdir"
+ mv usr/etc .
+ chmod 775 etc/flowee
+ mv etc/flowee/flowee.conf etc/flowee/flowee-example.conf
+ install -Dm 664 "$srcdir/flowee.conf" -t "$pkgdir/etc/flowee"
+ install -Dm 664 "$srcdir/logs.conf" -t "$pkgdir/etc/flowee"
+ install -Dm 644 "$srcdir/hub/support/thehub.service" -t "$pkgdir/usr/lib/systemd/system"
}