jobextra/swig/PKGBUILD

56 lines
1.6 KiB
Bash
Raw Normal View History

2022-03-20 13:34:07 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2022-09-03 00:49:51 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:34:07 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
2022-09-03 00:49:51 +02:00
# Website : https://pozol.eu
2022-03-20 13:34:07 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=swig
pkgver=4.1.0
pkgrel=01
2022-03-20 13:34:07 +01:00
pkgdesc="Generate scripting interfaces to C/C++ code"
url="http://www.swig.org/"
depends=('pcre2' 'gcc-libs')
2022-03-20 13:34:07 +01:00
checkdepends=('ruby' 'python' 'java-environment' 'tcl' 'php' 'lua' 'r' 'go' 'boost')
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
# jdk17.patch
# python310.patch)
2022-03-20 13:34:07 +01:00
prepare() {
cd ${pkgname}-${pkgver}
# patch -Np1 -i ../jdk17.patch
2022-03-20 13:34:07 +01:00
# https://github.com/swig/swig/issues/2044
# patch -Np1 -i ../python310.patch
2022-03-20 13:34:07 +01:00
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${pkgname}-${pkgver}
make check PY3=y
}
package() {
cd ${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
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:34:07 +01:00
license=('custom')
sha512sums=('a7d43d6aa764923826786081a3f2e25aa0f8345e1169c1e57bf02d01f6f41c92d8db0f360ec86e0e428ef5a21d1b5cd3edb7e4b71d0beff3e6611e344b5c22b1')
sha256sums=(d6a9a8094e78f7cfb6f80a73cc271e1fe388c8638ed22668622c2c646df5bb3d) # swig-4.1.0.tar.gz
## f50f1ce55f8a988026b7128ae7a5f8084414ca0094696bb96c0d4c79ab73d0b8 swig-4.1.0-01-x86_64.pkg.tar.lz