Skip to content

Instantly share code, notes, and snippets.

@a-andreyev
Last active March 11, 2016 12:39
Show Gist options
  • Select an option

  • Save a-andreyev/b1800d76daf8cadb20ed to your computer and use it in GitHub Desktop.

Select an option

Save a-andreyev/b1800d76daf8cadb20ed to your computer and use it in GitHub Desktop.
Breakfastquay Dataquay ArchLinux PKGBUILD
# Maintainer: aa13q <aa13q@ya.ru>
# Contributor: speps <speps at aur dot archlinux dot org>
pkgname=dataquay-git
appname=dataquay
pkgver=0.9
pkgrel=3
pkgbranch=master
pkgdesc="A free open source library that provides a friendly C++ API for an RDF data store, using Qt classes and containers."
arch=(i686 x86_64)
url="http://breakfastquay.com/dataquay/"
license=('custom:BSD')
depends=('qt5-base')
makedepends=('redland')
source=("https://github.com/breakfastquay/dataquay/archive/master.zip")
md5sums=('SKIP')
build() {
cd "$srcdir/$appname-$pkgbranch"
# disable tests (needs running X server)
sed -i "s/ \?sub_tests.*//" $appname.pro
# enable the Redland datastore (http://librdf.org/)
sed -i '5,7 s/^##*//' config.pri
# disable the Sord datastore (http://drobilla.net/software/sord/)
sed -i '10,12 s/^/#/' config.pri
qmake PREFIX=/usr $appname.pro
make
}
package() {
cd "$srcdir/$appname-$pkgbranch"
make INSTALL_ROOT="$pkgdir/" install
# missing pkgconfig file
install -Dm644 deploy/$appname.pc \
"$pkgdir/usr/lib/pkgconfig"
# license
install -Dm644 COPYING \
"$pkgdir/usr/share/licenses/$appname/LICENSE"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment