[arch-commits] Commit in re2/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Tue Dec 19 08:11:30 UTC 2017
Date: Tuesday, December 19, 2017 @ 08:11:29
Author: foutrelis
Revision: 313343
Adopt + cosmetic changes
Modified:
re2/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-19 07:17:07 UTC (rev 313342)
+++ PKGBUILD 2017-12-19 08:11:29 UTC (rev 313343)
@@ -1,32 +1,33 @@
# $Id$
-# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
pkgname=re2
-_tag='2017-12-01'
-pkgver=${_tag//-/}
+_re2ver=2017-12-01
+pkgver=${_re2ver//-}
pkgrel=1
-pkgdesc='C++ library for fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python'
-url='https://github.com/google/re2'
-depends=(gcc-libs)
-arch=(x86_64)
-license=(BSD)
-source=(re2-$pkgver.zip::https://github.com/google/re2/archive/$_tag.zip)
-sha1sums=('da820ba014ec92fd5b23b27bece34ea1e0e17d5c')
+pkgdesc="Fast, safe, thread-friendly regular expression engine"
+arch=('x86_64')
+url="https://github.com/google/re2"
+license=('BSD')
+depends=('gcc-libs')
+source=(re2-$pkgver.tar.gz::https://github.com/google/re2/archive/$_re2ver.tar.gz)
+sha256sums=('62797e7cd7cc959419710cd25b075b5f5b247da0e8214d47bf5af9b32128fb0d')
build() {
- cd re2-$_tag
- make prefix=/usr
+ cd $pkgname-$_re2ver
+ make
}
check() {
- cd re2-$_tag
- make prefix=/usr test
+ cd $pkgname-$_re2ver
+ make test
}
package() {
- cd re2-$_tag
+ cd $pkgname-$_re2ver
make prefix=/usr DESTDIR="$pkgdir" install
- install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list