aur/PKGBUILD

55 lines
1.4 KiB
Bash
Raw Normal View History

2022-04-22 01:31:30 +02:00
# Maintainer: AchmadFathoni <fathoni DOT id AT gmail DOT com>
# Contributor: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Mykola Dolhyi <0xb000@gmail.com>
# Contributor: Ramdambo <https://github.com/Ramdambo>
pkgname=ignition-math
2022-02-15 18:28:11 +01:00
pkgver=6.10.0
2022-04-22 01:31:30 +02:00
pkgrel=2
pkgdesc="Math classes and functions for robot applications"
arch=('i686' 'x86_64')
2020-03-07 19:26:46 +01:00
url="https://ignitionrobotics.org/libs/math"
license=('Apache')
groups=('development')
2018-02-24 10:45:26 +01:00
depends=('gcc-libs')
2020-01-16 02:32:45 +01:00
makedepends=('ignition-cmake>=2')
2020-01-16 02:29:42 +01:00
optdepends=('eigen')
conflicts=()
2022-04-22 01:31:30 +02:00
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-math/archive/${pkgname}6_${pkgver}.tar.gz"
"cmake.patch::https://github.com/ignitionrobotics/ign-math/commit/6340f89b4d19e6b6aa38ae632760da264409c1ef.diff"
)
2022-04-22 01:35:19 +02:00
sha256sums=(
"9e00284cd6d51afe190165b2b44258e19bd4a28781cbacf21fd6b0bae43c16aa"
"d94835e0c1fe543ac47d7de1ee0906c171ce91c2f4e60bf597172c951d66a605"
)
2021-10-03 07:53:49 +02:00
depends=(
swig
)
_dir="ign-math-${pkgname}6_${pkgver}"
2022-04-22 01:31:30 +02:00
prepare(){
patch --directory="$_dir" --forward --strip=1 --input="${srcdir}/cmake.patch"
}
build() {
cd "$srcdir/$_dir"
mkdir -p build
cd build
2021-05-22 02:06:40 +02:00
cmake .. -Wno-dev \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
2018-02-24 10:45:26 +01:00
-DBUILD_TESTING:BOOL=False
2019-06-30 23:36:59 +02:00
make
}
package() {
cd "$srcdir/$_dir/build"
make DESTDIR="$pkgdir/" install
}