summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rakowski2018-01-04 23:57:38 +0100
committerTim Rakowski2018-01-04 23:57:38 +0100
commit8265b708d83f98d4e234566d443bc47cb455fe40 (patch)
treec5a6904567e56025822fc5a07ea9d3c325aa4ee8
parenteb7ff2f4b3e95e9d6bc5a4e83a7d9a88825986d2 (diff)
downloadaur-8265b708d83f98d4e234566d443bc47cb455fe40.tar.gz
Moved cmake to build. Removed empty prepare(). Added check()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 12 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bf4a90c2c53..e5ceb71f69a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu Jan 4 22:42:38 UTC 2018
+# Thu Jan 4 22:56:57 UTC 2018
pkgbase = ignition-transport
pkgdesc = The transport library combines ZeroMQ with Protobufs to create a fast and efficient message passing system
pkgver = 3.1.0
diff --git a/PKGBUILD b/PKGBUILD
index 954da64a867..5be826ea771 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ md5sums=('fb511618941cf49f89e0f7ebe34901e7')
_dir="ignitionrobotics-ign-transport-242b31c2579b"
-prepare() {
+build() {
cd "${srcdir}/${_dir}"
mkdir -p build && cd build
@@ -25,11 +25,19 @@ prepare() {
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DBUILD_TESTING=Off
+ make
}
-build() {
- cd "${srcdir}/${_dir}/build"
+check() {
+ cd "${srcdir}/${_dir}"
+ mkdir -p build && cd build
+
+ cmake .. -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ -DBUILD_TESTING=On
make
+ make test
}
package() {