diff options
author | Wesley Chan | 2016-01-14 13:05:41 +0800 |
---|---|---|
committer | Wesley Chan | 2016-01-14 13:05:41 +0800 |
commit | ad2587ca0a3b5db2a835a99443bcec742c3cc782 (patch) | |
tree | 77c786d6d44034cdae2b8f644b6ab3ee34ebd72a /PKGBUILD | |
download | aur-ad2587ca0a3b5db2a835a99443bcec742c3cc782.tar.gz |
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b8606fb5c424 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Wesley Chan https://aur.archlinux.org/account/Wesley_Chan +# Original authors: Sven-Hendrik Haase <sh@lutzhaase.com>, Markus Martin <markus@archwyrm.net> + +pkgname=yaml-cpp-git +pkgver=r684.e92321a +pkgrel=1 +pkgdesc="YAML parser and emitter in C++, written around the YAML 1.2 spec" +url="https://github.com/jbeder/yaml-cpp" +arch=('i686' 'x86_64') +license=('MIT') +depends=('gcc-libs') +conflicts=('yaml-cpp') +provides=('yaml-cpp') +makedepends=('boost' 'cmake') +source=(${pkgname}::git+https://github.com/jbeder/yaml-cpp.git) +md5sums=('SKIP') + +pkgver() { + cd $pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $srcdir/$pkgname + + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON + make +} + +package() { + cd $srcdir/$pkgname + + make DESTDIR=$pkgdir install + + install -Dm644 yaml-cpp-config.cmake $pkgdir/usr/lib/cmake/${pkgname}/yaml-cpp-config.cmake + install -Dm644 yaml-cpp-config-version.cmake $pkgdir/usr/lib/cmake/${pkgname}/yaml-cpp-config-version.cmake + install -Dm644 yaml-cpp-targets.cmake $pkgdir/usr/lib/cmake/${pkgname}/yaml-cpp-targets.cmake + + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |