-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
61 lines (47 loc) · 1.46 KB
/
PKGBUILD
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Based on original PKGBUILD generated by pipman
# Python package author, Dmitry Orlov <me@mosquito.su> <me@mosquito.su>
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# [ToDo]: Add files: User documentation
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors
# Maintainer: Ross Clark <archiv8@artisteducator.com>
# Contributor: Ross Clark <archiv8@artisteducator.com>
_prefix="python"
_relname="cysystemd"
pkgname=${_prefix}-${_relname}
pkgver=1.5.2
pkgrel=2
pkgdesc="A SystemD wrapper on Cython"
arch=(
"x86_64"
)
url="http://github.com/mosquito/cysystemd"
license=(Apache)
depends=(
"cython"
"systemd"
)
makedepends=(
"python"
"python-pip"
)
source=(
"https://files.pythonhosted.org/packages/source/${_relname::1}/${_relname}/${_relname}-${pkgver}.tar.gz"
)
sha512sums=(
"51ce07ad0ce4d765bda89ae67e8eee9e59d246b38b3e3f7f9ee6d8802bba5b2fd67e59921a30f0c37447ebfa0567cdc2f1e846d0035c2b9364ad937483f3d79c"
)
build() {
cd "$srcdir/${_relname}-${pkgver}"
python setup.py build
}
package() {
cd "$srcdir/${_relname}-${pkgver}"
python setup.py install --root="$pkgdir/" --skip-build --optimize=1
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}