summaryrefslogtreecommitdiff
path: root/community/libnoise/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libnoise/PKGBUILD')
-rw-r--r--community/libnoise/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/libnoise/PKGBUILD b/community/libnoise/PKGBUILD
new file mode 100644
index 000000000..6c863acf9
--- /dev/null
+++ b/community/libnoise/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 64752 2012-02-18 03:57:07Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: jimmy-6
+pkgname=libnoise
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="A portable, open-source, coherent noise-generating library for C++"
+arch=('i686' 'x86_64')
+url="http://libnoise.sourceforge.net/"
+license=('LGPL')
+makedepends=('cmake' 'unzip')
+source=("http://prdownloads.sourceforge.net/libnoise/libnoisesrc-${pkgver}.zip"
+ "CMakeLists.txt")
+noextract=("libnoisesrc-${pkgver}.zip")
+md5sums=('fc0d9b4f6477397568c3a9d5294b3b8c'
+ '913a4145cdc7c38d43698386321ea85b')
+
+build() {
+ cd ${srcdir}
+ unzip "libnoisesrc-${pkgver}.zip"
+ cp 'CMakeLists.txt' 'noise'
+ mkdir build
+ cd build
+ cmake ../noise \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON
+ make
+}
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR=${pkgdir} install
+}