summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6121224f79aa4f24aa1388dd132c053531129a0 (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
30
31
32
33
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Jose Riha <jose1711 gmail com>

pkgname=python2-sip
_name="${pkgname#python2-}"
pkgver=4.19.25
pkgrel=1
pkgdesc='Legacy Python 2 bindings for C and C++ libraries'
arch=('x86_64')
url="https://riverbankcomputing.com/software/${_name}/download"
license=('custom' 'GPL2' 'GPL3')
depends=(
  'glibc'
  'python2'
)
_tarname="${_name}-${pkgver}"
source=("https://www.riverbankcomputing.com/static/Downloads/${_name}/${pkgver}/${_tarname}.tar.gz")
b2sums=('f92e105e6b30e871aea2883dc9cd459e4032fb139a9eaff153a3412a66b39df4d7ac985711a2693aee83195ff3850ae648bee4102f7fc3cc30d09885799f2b98')

build() {
  cd "${_tarname}"
  python2 configure.py \
    CFLAGS="${CFLAGS}" \
    LFLAGS="${LDFLAGS}" \
    --no-tools
  make
}

package() {
  cd "${_tarname}"
  make DESTDIR="${pkgdir}" install
  install -Dm 644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}