summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoracxz2021-01-02 14:23:34 -0500
committeracxz2021-01-02 14:23:34 -0500
commitc0291657c0d5e951e0f9f595b86ea115ca5d5f6a (patch)
tree5448ab9ba00fad1fe6ae58324f56c096707406bc /PKGBUILD
parent35730590f4308ee15a2439a1fc29f3f2bffeae81 (diff)
downloadaur-ignition-rendering.tar.gz
add libname patch
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 57d2356dc38..9bb8f0d6937 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ignition-rendering
pkgver=4.1.0
-pkgrel=2
+pkgrel=3
pkgdesc="C++ library designed to provide an abstraction for different rendering
engines. It offers unified APIs for creating 3D graphics applications."
arch=('x86_64')
@@ -10,29 +10,33 @@ url="https://ignitionrobotics.org/libs/rendering"
license=('Apache')
depends=('ignition-plugin')
makedepends=('cmake')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-rendering/archive/${pkgname}4_${pkgver}.tar.gz")
-sha256sums=('465e858332d5b0e608888e9d62d08f779c7d99d0a51f2de7ba23ba640cdd4be4')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-rendering/archive/${pkgname}4_${pkgver}.tar.gz"
+ "libname.patch::https://patch-diff.githubusercontent.com/raw/ignitionrobotics/ign-rendering/pull/193.patch")
+sha256sums=('465e858332d5b0e608888e9d62d08f779c7d99d0a51f2de7ba23ba640cdd4be4'
+ 'SKIP')
_dir="ign-rendering-${pkgname}4_${pkgver}"
+prepare() {
+ cd "$srcdir/$_dir"
+ patch --forward --strip=1 --input="${srcdir}/libname.patch"
+}
+
build() {
cd "$srcdir/$_dir"
mkdir -p build
cd build
- # Configure build
cmake .. -DCMAKE_BUILD_TYPE="Release" \
- -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DBUILD_TESTING=OFF
- # Compile
make
}
package() {
cd "$srcdir/$_dir/build"
- #make DESTDIR="$pkgdir/" install
- make install
+ make DESTDIR="$pkgdir/" install
}