summaryrefslogtreecommitdiff
path: root/extra/swig/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/swig/PKGBUILD')
-rw-r--r--extra/swig/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/swig/PKGBUILD b/extra/swig/PKGBUILD
new file mode 100644
index 000000000..d1b6f245a
--- /dev/null
+++ b/extra/swig/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 125892 2011-05-31 15:18:06Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=swig
+pkgver=2.0.4
+pkgrel=1
+pkgdesc="Generate scripting interfaces to C/C++ code"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.swig.org/"
+license=('custom')
+depends=('zlib' 'pcre')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('ace563563a8f6f367ba82236e5bea240adea0d94')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES
+}