summaryrefslogtreecommitdiff
path: root/pcr/swig1/PKGBUILD
blob: 540db98df87262c5944f6013335543fe376ae976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor (Arch): Hilton Medeiros <medeiros.hilton at gmail dot com>
# Contributor (Arch): Jason Chu <jason@archlinux.org>
# Contributor (Arch): Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname=swig1
_pkgname=swig
pkgver=1.3.40
pkgrel=1
pkgdesc="A compiler that integrates C and C++ code with scripting languages (legacy version)"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.swig.org/"
license=('custom')
depends=('gcc-libs' 'zlib')
conflicts=('swig' 'swig-pantheon')
provides=('swig')
source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")

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"
}