swig/PKGBUILD

41 lines
1.1 KiB
Bash
Raw Normal View History

2024-11-05 21:13:43 +08:00
# 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
2024-11-05 21:31:05 +08:00
pkgver=4.3.0
2024-11-05 21:13:43 +08:00
pkgrel=1
pkgdesc="Generate scripting interfaces to C/C++ code"
arch=('x86_64')
url="http://www.swig.org/"
2024-11-05 21:31:05 +08:00
license=(
'GPL-3.0-or-later'
'LicenseRef-BSD-Arizona'
'LicenseRef-BSD-Chicago'
'LicenseRef-BSD-Utah-California'
)
depends=('gcc-libs' 'glibc' 'pcre2' 'zlib')
2024-11-05 21:13:43 +08:00
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
2024-11-05 21:31:05 +08:00
sha256sums=(f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e)
2024-11-05 21:13:43 +08:00
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}
}