diff options
author | Øystein Sture | 2024-10-16 23:21:08 +0200 |
---|---|---|
committer | Øystein Sture | 2024-10-16 23:21:08 +0200 |
commit | 14436c1c1f490cabefeea13d8dc024e37d6f26fc (patch) | |
tree | bde1a9a7c96f3ab592d89230a915e46810946a4c /PKGBUILD | |
download | aur-14436c1c1f490cabefeea13d8dc024e37d6f26fc.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34d0f6a3bb40 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: oysstu <oysstu at gmail dot com> + +pkgname=gz-plugin3 +pkgver=3.0.0 +pkgrel=1 +_pkgmaj=${pkgver%%.*} +_pkgbase=${pkgname::-${#_pkgmaj}} +pkgdesc="Cross-platform C++ library for dynamically loading plugins." +arch=('any') +url="https://github.com/gazebosim/${_pkgbase}" +license=('Apache') +depends=( + 'glibc' + 'gz-utils=3' + ) +makedepends=( + 'cmake' + 'doxygen' + 'gz-cmake=4' + ) +provides=("${_pkgbase}=${_pkgmaj}") +source=("https://github.com/gazebosim/${_pkgbase}/archive/${pkgname}_${pkgver}.tar.gz") +sha256sums=('2edb38cecdedf8469456f0a11faf5f90d15f72f89ecf8052fc0a3765a1a256a0') + +build() { + cmake -B build -S "${_pkgbase}-${pkgname}_${pkgver}" \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DBUILD_TESTING=OFF \ + -Wno-dev + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} |