-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
38 lines (32 loc) · 991 Bytes
/
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
# Maintainer: Christian Eichelmann <[email protected]>
pkgname=sslapi
pkgdesc="A python flask based REST api for creating/signing SSL certificates and keys"
pkgver=0.1
pkgrel=1
arch=('any')
url="https://github.com/Crapworks/SSLApi"
license=('BSD')
depends=('python' 'python-setuptools', 'python-flask', 'python-cryptography')
makedepends=('git')
conflicts=(sslapi)
provides=(sslapi)
source=("git://github.com/Crapworks/SSLApi.git#branch=master")
md5sums=(SKIP)
_repo_name=SSLApi
pkgver() {
cd "$srcdir/$_repo_name"
_author_ver=$(git describe | sed -e 's/-.*//' -e 's/v//')
_last_commit_date=$(git log -1 --pretty='%cd' --date=short | tr -d '-')
_commit_count="$(git rev-list --count HEAD)"
echo $_author_ver.$_last_commit_date.$_commit_count
}
build() {
cd "$srcdir/$_repo_name"
msg "GIT checkout done or server timeout"
msg "Starting make..."
python3 setup.py build
}
package() {
cd "$srcdir/$_repo_name"
python3 setup.py install --root=$pkgdir/ --optimize=1
}