diff options
author | Ralph Alexander Bariz | 2017-04-14 19:51:34 +0200 |
---|---|---|
committer | Ralph Alexander Bariz | 2017-04-14 19:51:34 +0200 |
commit | c8f33b1b5c6c53cba7f594097a7d540f1cdd06fb (patch) | |
tree | f4e8c2bdeb639e6fccdea7fd4b73700d76785951 /PKGBUILD | |
download | aur-c8f33b1b5c6c53cba7f594097a7d540f1cdd06fb.tar.gz |
added AUR for flow causal 0.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8dbde31a004d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,89 @@ +# Maintainer: Your Name ralph.bariz@gmail.com +pkgname=flow-causal +pkgver=0.1.0 +pkgrel=1 +epoch=0 +pkgdesc="flow causal studio" +arch=('i685' 'x86_64') +url="https://github.com/RalphBariz/flow" +license=('GPL3') +groups=('flow') +depends=('dub') +makedepends=('dub' 'unzip') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install=pkg.install +changelog= +source=("flow-base.zip::https://github.com/RalphBariz/flow-base/archive/$pkgver.zip" + "flow-util.zip::https://github.com/RalphBariz/flow-util/archive/$pkgver.zip" + "flow-alien.zip::https://github.com/RalphBariz/flow-alien/archive/$pkgver.zip" + "flow-causal.zip::https://github.com/RalphBariz/flow-causal/archive/$pkgver.zip" + "web.json" + "causal.json") +noextract=() +md5sums=('4405289e93df0e71fc00abf1ce104ea0' + 'edd89037b2300464df3176d0f249c32a' + 'eb81517aeff6f13be25d4f9352ea0f54' + 'e75d7530f3bc1fa17909e7bdaf86ade6' + 'b92fb60eac286af67f3d9c811ae5959a' + '60705357a2f2d74107f5570ff41ac2d0') +validpgpkeys=() + +#prepare() { +# cd "$pkgname-$pkgver" +# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +#} + +#build() { +# cd "$pkgname-$pkgver" +# ./configure --prefix=/usr +# make +#} + +#check() { +# cd "$pkgname-$pkgver" +# make -k check +#} + +package() { + # creating configuration + mkdir -p $pkgdir/etc/flow-causal/ + cp -fr *.json $pkgdir/etc/flow-causal/ + + # compiling libraries + mkdir -p dub + cd dub + + unzip -o -qq ../flow-base.zip + dub add-local flow-base-$pkgver + + unzip -o -qq ../flow-util.zip + dub add-local flow-util-$pkgver + + unzip -o -qq ../flow-alien.zip + dub add-local flow-alien-$pkgver + + cd .. + + # compiling app + unzip -o -qq flow-causal.zip + cd flow-causal-$pkgver + dub build --build release + cd bin + + # putting everything to the right place + mkdir -p $pkgdir/usr/share/flow-causal/ + mkdir -p $pkgdir/usr/bin/ + cp -fr public $pkgdir/usr/share/flow-causal/ + cp -fr flow-causal $pkgdir/usr/bin/ + + # removing library registrations + dub remove-local ../../dub/flow-base-$pkgver + dub remove-local ../../dub/flow-util-$pkgver + dub remove-local ../../dub/flow-alien-$pkgver +} |