diff options
author | Bidski | 2021-09-01 12:58:42 +1000 |
---|---|---|
committer | Bidski | 2021-09-01 12:58:42 +1000 |
commit | 2c1427dbd9823389f8e9fabd7685eb8de3097409 (patch) | |
tree | 86885c36e8e9e9c011180af82f2e433a8a0f83e1 | |
parent | 0d980a798f83df21588c4754e0e390316ef82666 (diff) | |
download | aur-2c1427dbd9823389f8e9fabd7685eb8de3097409.tar.gz |
upgpkg: nuclear-git r890.f4a60c7-1
Update nuclear package
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 16 insertions, 17 deletions
@@ -1,6 +1,6 @@ pkgbase = nuclear-git pkgdesc = NUClear is a C++ software framework designed to aid in the development of real time modular systems. - pkgver = r876.42d9b0d + pkgver = r890.f4a60c7 pkgrel = 1 url = https://github.com/Fastcode/NUClear arch = x86_64 @@ -19,4 +19,3 @@ pkgbase = nuclear-git md5sums = SKIP pkgname = nuclear-git - @@ -1,6 +1,7 @@ -# Maintainer: Alex Biddulph <bidskii@gmail.com> -pkgname=nuclear-git -pkgver=r876.42d9b0d +# Maintainer: Bidski <bidskii at gmail dot com> +_pkgname=nuclear +pkgname=${_pkgname}-git +pkgver=r890.f4a60c7 pkgrel=1 pkgdesc="NUClear is a C++ software framework designed to aid in the development of real time modular systems." arch=('x86_64' 'i686') @@ -9,20 +10,20 @@ license=('MIT') groups=('devel') makedepends=('git' 'make' 'cmake>=3.1', 'gcc>=4.9') optdepends=('python-sphinx: documentation' 'doxygen: documentation') -provides=("${pkgname%-git}") -conflicts=("${pkgname%-git}") -source=("${pkgname%-git}"::'git+https://github.com/Fastcode/NUClear.git#branch=master') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("${_pkgname}"::'git+https://github.com/Fastcode/NUClear.git#branch=master') md5sums=('SKIP') # Check for optional dependencies _installed_pkgs=$(pacman -Qq) _sphinx_installed=$(echo "${_installed_pkgs}" | grep "python-sphinx" > /dev/null ; echo $?) _doxygen_installed=$(echo "${_installed_pkgs}" | grep "doxygen" > /dev/null ; echo $?) pkgver() { - cd "$srcdir/${pkgname%-git}" + cd "${srcdir}/${_pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$srcdir/${pkgname%-git}" + cd "${srcdir}/${_pkgname}" # Check to see if we should build documentation optional_args="-DBUILD_DOCUMENTATION=OFF" if [[ ( "${_sphinx_installed}" == 0 ) && ( "${_doxygen_installed}" == 0 ) ]]; @@ -36,16 +37,15 @@ build() { -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTS=ON \ ${optional_args} - make + make } check() { - cd "$srcdir/${pkgname%-git}/build" + cd "${srcdir}/${_pkgname}/build" ./tests/test_nuclear } package() { - cd "$srcdir/${pkgname%-git}/build" - make DESTDIR="$pkgdir/" install - cd "$srcdir/${pkgname%-git}" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "${srcdir}/${_pkgname}/build" + make DESTDIR="${pkgdir}/" install + cd "${srcdir}/${_pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" } - |