blob: 33ad86bb436f74eab9c97eeff58ec96cfd6e4e06 (
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
39
40
41
42
43
44
45
46
|
# Maintainer: Guillaume Hayot <ghayot@postblue.info>
pkgname=pam-python-git
pkgver=r31.9641aa5
pkgrel=4
pkgdesc='Python for PAM (py3 fork)'
arch=('x86_64')
url='https://github.com/castlabs/pam-python'
license=('GNU Affero General Public License')
depends=(
'pam'
'python'
)
makedepends=(
'python-sphinx'
'python-setuptools'
'make'
'git'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('pam-python::git+https://github.com/castlabs/pam-python.git')
sha256sums=('SKIP')
noextract=()
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
sed -i 's|Werror|Werror -Wno-error=deprecated-declarations|;s|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile
sed -n '/^License/,/^--$/p' README.txt | grep -v -e '^License' -e '^-\+' > LICENSE
}
build() {
cd "$srcdir/${pkgname%-git}"
PREFIX=/usr make lib
}
package() {
cd "$srcdir/${pkgname%-git}"
PREFIX=/usr make DESTDIR="${pkgdir}" install-lib
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|