Created
March 11, 2018 00:13
-
-
Save Oxore/a57ca547d84b8a9a1a094c30e42ae20b to your computer and use it in GitHub Desktop.
cal3d-git Arch Linux PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=cal3d-git | |
pkgver=0.120.r57.geb46227 | |
pkgrel=1 | |
pkgdesc="A skeletal-based 3D character animation library" | |
arch=(i686 x86_64) | |
url="https://mp3butcher.github.io/Cal3D/" | |
options=(!libtool) license=('GPL2') | |
depends=('gcc-libs') | |
makedepends=('subversion' 'cmake') | |
conflicts=('cal3d') | |
provides=('cal3d') | |
source=(git+https://github.com/mp3butcher/Cal3D.git) | |
md5sums=('SKIP') | |
pkgver() { | |
cd "${srcdir}/Cal3D" | |
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "${srcdir}/Cal3D/cal3d" | |
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr | |
cd build && make | |
} | |
package() { | |
cd "${srcdir}/Cal3D/cal3d" | |
install -D -m755 bin/libcal3d.so ${pkgdir}/usr/lib/libcal3d.so | |
mkdir -p "${pkgdir}/usr/include/cal3d" | |
for file in src/cal3d/*.h; do | |
install -m644 ${file} "${pkgdir}/usr/include/cal3d/" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment