36 lines
1020 B
Bash
36 lines
1020 B
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Future Linux Team <futurelinux@163.com>
|
|
pkgname=swig
|
|
pkgver=4.2.1
|
|
pkgrel=1
|
|
pkgdesc="Generate scripting interfaces to C/C++ code"
|
|
arch=('x86_64')
|
|
url="http://www.swig.org/"
|
|
license=('custom')
|
|
depends=('pcre2' 'gcc-libs')
|
|
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
|
sha256sums=(fa045354e2d048b2cddc69579e4256245d4676894858fcf0bab2290ecf59b7d8)
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
${CONFIGURE} \
|
|
--without-javascript \
|
|
--without-maximum-compile-warnings
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
|
cp -v -R Doc -T ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
|
}
|