summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba3a92c5ef6da2d0249c1cc93398ae666586d290 (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
34
35
36
37
38
pkgname=python-vici
pkgver=5.9.3
pkgrel=1
pkgdesc="vici python egg to talk to strongSwan via VICI socket"
arch=(any)
url="https://strongswan.org"
license=('MIT')
makedepends=('automake' 'autoconf' 'python-setuptools')
depends=('python')
source=("https://github.com/strongswan/strongswan/releases/download/$pkgver/strongswan-$pkgver.tar.bz2"
    "use-sitepackages.patch"
    )

sha256sums=('9325ab56a0a4e97e379401e1d942ce3e0d8b6372291350ab2caae0755862c6f7'
            '658817b0d3c1fd221521176c188b0b499c91f28c6a50a3cdbb3efd181868b960')

build() {
    cd "$srcdir/strongswan-$pkgver"
    ./configure \
        --build=$CBUILD \
        --host=$CHOST \
        --disable-defaults \
        --enable-python-eggs

    cd src/libcharon/plugins/vici/python
    make all
    python3 setup.py build
}

check() {
    cd "$srcdir/strongswan-$pkgver"
    make -C src/libcharon/plugins/vici/python check
}

package() {
    cd "$srcdir/strongswan-$pkgver/src/libcharon/plugins/vici/python/"
    python3 setup.py install --root="$pkgdir" --optimize=1
}