summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 126ace1f883c6ab7fec95220e5204f3fc8142b4a (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
# Maintainer: Matthew Gamble <git@matthewgamble.net>

pkgname=nspawn-tools
pkgver=1.1.2
pkgrel=5
pkgdesc="Convenience code for dealing with systemd-nspawn machines"
arch=("any")
url="https://github.com/djmattyg007/nspawn-tools"
license=("GPL3")
depends=("python" "python-executor" "python-humanfriendly" "python-parse" "python-proc")
makedepends=("python-setuptools")
source=("https://github.com/djmattyg007/nspawn-tools/archive/${pkgver}.tar.gz")
sha512sums=("5900f959ac1f5267b69b48e1aca45b3407609870b1c05f84d1a94fceaa46cc327ef083e400310c974b995be324b642af5a8db45f64cb006f3538ea6e846fe9f4")

build() {
    cd "nspawn-tools-${pkgver}"

    python setup.py build
}

package() {
    cd "nspawn-tools-${pkgver}"

    PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

    install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/nspawn-tools/LICENSE.txt"
    install -Dm644 README.txt "${pkgdir}/usr/share/doc/nspawn-tools/README.txt"
}