diff options
author | Daichi Shinozaki | 2016-06-22 09:47:56 +0100 |
---|---|---|
committer | Daichi Shinozaki | 2016-06-22 09:47:56 +0100 |
commit | 237e544662bb01e262e584da87146ab9c7ad2125 (patch) | |
tree | 0f44ce32f8812b7100db1be99393ae82c467e260 | |
parent | 2ef22e17fd0310bd6373ab0885adbf99c55e764f (diff) | |
download | aur-237e544662bb01e262e584da87146ab9c7ad2125.tar.gz |
Add a static library file, plustache.a. Add check().
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 14 insertions, 3 deletions
@@ -1,14 +1,16 @@ # Generated by mksrcinfo v8 -# Wed Jun 22 08:34:30 UTC 2016 +# Wed Jun 22 08:47:50 UTC 2016 pkgbase = plustache pkgdesc = Basic port of mustache templating to C++ pkgver = 0.4.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/mrtazz/plustache arch = i686 arch = x86_64 license = MIT + checkdepends = gtest depends = boost + options = staticlibs source = plustache-0.4.0.tar.gz::https://github.com/mrtazz/plustache/archive/0.4.0.tar.gz md5sums = e22a8d53650776ade11b7b0ed71258bc @@ -2,12 +2,14 @@ pkgname=plustache pkgver=0.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Basic port of mustache templating to C++" url="https://github.com/mrtazz/plustache" arch=( 'i686' 'x86_64' ) license=( 'MIT' ) depends=( 'boost' ) +checkdepends=( 'gtest' ) +options=( 'staticlibs' ) source=( "$pkgname-$pkgver.tar.gz::https://github.com/mrtazz/plustache/archive/$pkgver.tar.gz" ) md5sums=('e22a8d53650776ade11b7b0ed71258bc') @@ -15,6 +17,8 @@ prepare() { cd "$srcdir/$pkgname-$pkgver" sed -i -e "s,boost_regex-mt,boost_regex,g" \ -e "s,LDFLAGS=.*,\0 -version-info 3:0:3,g" \ + -e "s,-Ivendor/gtest-1.7.0/include,,g" \ + -e "s,-Lvendor/gtest-1.7.0/lib/.libs,,g" \ Makefile.am } @@ -25,6 +29,11 @@ build() { make } +check() { + cd "$srcdir/$pkgname-$pkgver" + make test +} + package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR=$pkgdir install |