Make this actually compile and install Flowee.

This is a 'git' build.
This commit is contained in:
TomZ
2018-03-08 16:38:52 +01:00
parent b542110263
commit 32d62b7d7e
6 changed files with 149 additions and 10 deletions
+43 -6
View File
@@ -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"
}