diff options
author | midgard | 2019-03-01 14:40:17 +0100 |
---|---|---|
committer | midgard | 2019-03-01 16:00:42 +0100 |
commit | 95a86b6cbbf22d03a8148e4852b615b8f15ec3b2 (patch) | |
tree | 28aacf195f43f5d8ba9048aa6af677766bb9cfea | |
parent | 86badb2b3dd86d7f81eb6d3bd3a41e6f6b4e8718 (diff) | |
download | aur-95a86b6cbbf22d03a8148e4852b615b8f15ec3b2.tar.gz |
Use consistent indentation
-rwxr-xr-x | PKGBUILD | 42 |
1 files changed, 19 insertions, 23 deletions
@@ -17,41 +17,37 @@ _name=dart source=(https://github.com/dartsim/${_name}/archive/v${pkgver}.tar.gz) sha256sums=('b4c7f4d800ae5696e6ada04bd91b299f4a5e4ff9e8e07deeed79c6923747e274') -# Build type _buildtype="Release" -# Build the project build() { - cd "${srcdir}/${_name}-${pkgver}" + cd "${srcdir}/${_name}-${pkgver}" - msg "Starting CMake (build type = ${_buildtype})" + msg "Starting CMake (build type: ${_buildtype})" - # Create a build directory - mkdir -p "${srcdir}/${_name}-${pkgver}-build" - cd "${srcdir}/${_name}-${pkgver}-build" + # Create a build directory + mkdir -p "${srcdir}/${_name}-${pkgver}-build" + cd "${srcdir}/${_name}-${pkgver}-build" - # Run CMake in release - cmake -DCMAKE_BUILD_TYPE="${_buildtype}" \ - -DCMAKE_INSTALL_PREFIX="/usr" \ - "${srcdir}/${_name}-${pkgver}" + cmake \ + -DCMAKE_BUILD_TYPE="${_buildtype}" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + "${srcdir}/${_name}-${pkgver}" - # Compile the library - msg "Building the project" - make + msg "Building the project" + make } -# Run unit tests #check() { - # msg "Running unit tests" - # cd "${srcdir}/${_name}-${pkgver}-build" - # make test +# msg "Running unit tests" +# cd "${srcdir}/${_name}-${pkgver}-build" +# make test #} -# Create the package package() { - # Install in /opt/roboptim - cd "${srcdir}/${_name}-${pkgver}-build" + cd "${srcdir}/${_name}-${pkgver}-build" - msg "Installing files" - make DESTDIR="${pkgdir}/" install + msg "Installing files" + make DESTDIR="${pkgdir}/" install } + +# vim: set noet : |