0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-10-17 10:06:53 +02:00
howdy/archlinux/pam-python/PKGBUILD

42 lines
1 KiB
Text
Raw Permalink Normal View History

2019-04-11 18:32:51 +02:00
# Maintainer: boltgolt <boltgolt@gmail.com>
# Maintainer: Kelley McChesney <kelley@kelleymcchesney.us>
pkgname=pam-python
2021-01-03 01:25:25 +01:00
pkgver=1.0.8
2019-04-11 18:32:51 +02:00
pkgrel=1
pkgdesc="Python for PAM"
arch=('x86_64')
url="https://github.com/boltgolt/howdy"
license=('MIT')
depends=(
2020-12-03 17:13:18 +01:00
'pam'
2019-04-11 18:32:51 +02:00
'python2'
)
makedepends=(
'python-sphinx'
2019-04-11 18:32:51 +02:00
'cmake'
)
source=(
2021-01-03 01:25:25 +01:00
"https://downloads.sourceforge.net/project/${pkgname}/pam-python-${pkgver}-1/${pkgname}-${pkgver}.tar.gz"
2019-04-11 18:32:51 +02:00
)
2021-01-03 01:25:25 +01:00
sha256sums=('fc69d7717db0509111500a81053487fa7684e1be3b7d0ae2b51970b6fdc918f6')
2019-04-11 18:32:51 +02:00
prepare() {
# Preparing pam-python to be installed
2021-01-03 01:25:25 +01:00
cd "$srcdir/$pkgname-$pkgver"
2019-04-11 18:32:51 +02:00
sed -i'' 's|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile
2020-12-03 15:54:01 +01:00
sed -n '/^License/,/^--$/p' README.txt | grep -v -e '^License' -e '^-\+' > $srcdir/LICENSE
2019-04-11 18:32:51 +02:00
}
2019-11-15 17:43:24 +01:00
2019-04-11 18:32:51 +02:00
build() {
# Building pam-python
2021-01-03 01:25:25 +01:00
cd "$srcdir/$pkgname-$pkgver"
2019-04-11 18:32:51 +02:00
PREFIX=/usr make
}
2019-11-15 17:43:24 +01:00
2019-04-11 18:32:51 +02:00
package() {
# Installing pam-python
2021-01-03 01:25:25 +01:00
cd "$srcdir/$pkgname-$pkgver"
2019-04-11 18:32:51 +02:00
PREFIX=/usr make DESTDIR="$pkgdir/" install
2020-12-03 15:54:01 +01:00
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2019-04-11 18:32:51 +02:00
}