[arch-commits] Commit in (pegtl pegtl/repos pegtl/trunk pegtl/trunk/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sun Oct 14 13:18:11 UTC 2018


    Date: Sunday, October 14, 2018 @ 13:18:11
  Author: anthraxx
Revision: 393507

addpkg: pegtl 2.7.1-2

Added:
  pegtl/
  pegtl/repos/
  pegtl/trunk/
  pegtl/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Added: pegtl/trunk/PKGBUILD
===================================================================
--- pegtl/trunk/PKGBUILD	                        (rev 0)
+++ pegtl/trunk/PKGBUILD	2018-10-14 13:18:11 UTC (rev 393507)
@@ -0,0 +1,50 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=pegtl
+_gitcommit=ea09eb9fa66e328087ba9f6c00963343936053ca
+pkgver=2.7.1
+pkgrel=2
+pkgdesc='Parsing Expression Grammar Template Library'
+url='https://github.com/taocpp/PEGTL'
+arch=('any')
+license=('MIT')
+makedepends=('git' 'cmake')
+source=(${pkgname}::"git+https://github.com/taocpp/PEGTL#commit=${_gitcommit}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('3AC06334B62566C11A5912FB014C496DEC39EB21') # Daniel Frey <d.frey at gmx.de>
+
+pkgver() {
+  cd ${pkgname}
+  git describe --tags --always|sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd ${pkgname}
+  mkdir -p build
+}
+
+build() {
+  cd ${pkgname}/build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DPEGTL_INSTALL_DOC_DIR=share/doc/${pkgname} \
+    -DPEGTL_INSTALL_CMAKE_DIR=lib/cmake/${pkgname} \
+    -DPEGTL_BUILD_EXAMPLES=OFF \
+    -DPEGTL_BUILD_TESTS=ON
+  make
+}
+
+check() {
+  cd ${pkgname}/build
+  ctest
+}
+
+package() {
+  cd ${pkgname}
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dpm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dpm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list