upgpkg: ocaml-ctypes 0.20.2-1
[arch-packages.git] / python-systemd / trunk / PKGBUILD
blobe608101dd82db2b931ad40108ea639af827ac8a7
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=python-systemd
4 pkgver=235
5 pkgrel=2
6 pkgdesc="Python bindings for systemd"
7 url="https://github.com/systemd/python-systemd"
8 arch=(x86_64)
9 license=(LGPL)
10 depends=(python systemd)
11 makedepends=(python-setuptools git)
12 _commit=dc1dae2eaa00e2369c366f80f9bcd3f729b7abca  # tags/v235^0
13 source=("git+$url#commit=$_commit")
14 sha256sums=('SKIP')
16 pkgver() {
17   cd $pkgname
18   git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
21 prepare() {
22   cd $pkgname
25 build() {
26   cd $pkgname
27   make
30 package() {
31   cd $pkgname
32   python setup.py install --root="$pkgdir" --optimize=1 --skip-build