mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=swig
|
|
pkgver=2.0.4
|
|
pkgrel=1
|
|
pkgdesc="A compiler that makes it easy to integrate C and C++ code with scripting languages"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.swig.org/"
|
|
license=('custom')
|
|
depends=('pcre' 'zlib')
|
|
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
'includecstddef.diff')
|
|
md5sums=('4319c503ee3a13d2a53be9d828c3adc0'
|
|
'a3a7af136ca68250ddd520a207a47c4c')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# Adding a patch requested by a user
|
|
cd "${pkgdir}"
|
|
patch -Np0 -i "${srcdir}/includecstddef.diff"
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES"
|
|
}
|
|
|