addpkg: libgraphqlparser 0.7.0-2
This commit is contained in:
parent
56a25167a6
commit
fdddfe6b8b
1 changed files with 28 additions and 0 deletions
28
libgraphqlparser/PKGBUILD
Normal file
28
libgraphqlparser/PKGBUILD
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
|
||||||
|
|
||||||
|
pkgname=libgraphqlparser
|
||||||
|
pkgver=0.7.0
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="A GraphQL query parser in C++ with C and C++ APIs"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/graphql/libgraphqlparser"
|
||||||
|
license=('BSD')
|
||||||
|
depends=('gcc-libs')
|
||||||
|
makedepends=('git' 'cmake' 'python2')
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/graphql/$pkgname/archive/v$pkgver.tar.gz")
|
||||||
|
sha512sums=('973292b164d0d2cfe453a2f01559dbdb1b9d22b6304f6a3aabf71e2c0a3e24ab69dfd72a086764ad5befecf0005620f8e86f552dacc324f9615a05f31de7cede')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
|
cmake -DCTYPESGEN_FOUND=Off -DCMAKE_INSTALL_PREFIX=/usr .
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||||
|
}
|
Loading…
Reference in a new issue