summaryrefslogtreecommitdiff
path: root/community/csfml/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/csfml/PKGBUILD
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/csfml/PKGBUILD')
-rw-r--r--community/csfml/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/csfml/PKGBUILD b/community/csfml/PKGBUILD
new file mode 100644
index 000000000..1eb7c0b39
--- /dev/null
+++ b/community/csfml/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 95028 2013-08-03 22:28:51Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=csfml
+pkgver=2.1
+pkgrel=1
+pkgdesc='C bindings for sfml'
+arch=('i686' 'x86_64')
+url='http://www.sfml-dev.org/'
+license=('zlib')
+depends=("sfml=${pkgver}")
+makedepends=('cmake' 'doxygen')
+source=("${pkgname}-${pkgver}::https://github.com/LaurentGomila/CSFML/archive/${pkgver}.tar.gz")
+md5sums=('960085220e6978c720a62b02cc4a2ec4')
+
+build() {
+ cd "$srcdir"/CSFML-${pkgver}
+
+ mkdir build && cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_DOC=true
+ make
+ make doc
+}
+
+package() {
+ cd "$srcdir"/CSFML-${pkgver}/build
+
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 ../license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+