summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2019-07-20 19:16:46 -0400
committerAndrew Sun2019-07-20 19:16:46 -0400
commit7d17a7f166afc81ae6989189927b90cbdcad3a5d (patch)
tree5e6aafab27194561372d9228f8b6ac8023069c65
parent28b5bbdd91f760fe6c01bc85bc6d23cfd34717e9 (diff)
downloadaur-7d17a7f166afc81ae6989189927b90cbdcad3a5d.tar.gz
chipmunk: update to 7.0.3
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD21
2 files changed, 13 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dcc7d8bd214..60b116ce3d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,15 @@
-# Generated by mksrcinfo v8
-# Mon Jan 22 09:00:10 UTC 2018
pkgbase = chipmunk
pkgdesc = A high-performance 2D rigid body physics library
- pkgver = 7.0.2
+ pkgver = 7.0.3
pkgrel = 1
- url = http://chipmunk-physics.net/
+ url = https://chipmunk-physics.net/
arch = i686
arch = x86_64
license = MIT
makedepends = cmake
depends = glibc
- source = http://files.slembcke.net/chipmunk/release/Chipmunk-7.x/Chipmunk-7.0.2.tgz
- sha256sums = 288c8465fcaa671bab890c0b24627816efa10da2c5eabbeb36feb0d6deb1ca5a
+ source = chipmunk-7.0.3.tar.gz::https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-7.0.3.tar.gz
+ sha256sums = 1e6f093812d6130e45bdf4cb80280cb3c93d1e1833d8cf989d554d7963b7899a
pkgname = chipmunk
diff --git a/PKGBUILD b/PKGBUILD
index feec175f813..ec547b6efdd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,32 +3,29 @@
# Contributor: Fabio Volpe <volpefabio@gmail.com>
pkgname=chipmunk
-pkgver=7.0.2
+pkgver=7.0.3
pkgrel=1
pkgdesc="A high-performance 2D rigid body physics library"
arch=('i686' 'x86_64')
-url="http://chipmunk-physics.net/"
+url="https://chipmunk-physics.net/"
license=('MIT')
depends=('glibc')
makedepends=('cmake')
-source=(http://files.slembcke.net/chipmunk/release/Chipmunk-${pkgver%%.*}.x/Chipmunk-$pkgver.tgz)
-sha256sums=('288c8465fcaa671bab890c0b24627816efa10da2c5eabbeb36feb0d6deb1ca5a')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-${pkgver}.tar.gz")
+sha256sums=('1e6f093812d6130e45bdf4cb80280cb3c93d1e1833d8cf989d554d7963b7899a')
build() {
- cd "$srcdir/Chipmunk-$pkgver"
- sed -i '/MAKE_PROPERTIES_REF(cpShape, IsSensor);/d' include/chipmunk/chipmunk_ffi.h
+ mkdir -p "${srcdir}/build" && cd "${srcdir}/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_DEMOS=OFF \
-DCMAKE_C_FLAGS="-DCHIPMUNK_FFI" \
- -DNDEBUG=ON \
- .
- make clean
+ ../Chipmunk2D-Chipmunk-${pkgver}
make
}
package() {
- cd "$srcdir/Chipmunk-$pkgver"
- install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- make DESTDIR="$pkgdir" install
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 "${srcdir}/Chipmunk2D-Chipmunk-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}