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

43 lines
1.2 KiB
Text
Raw 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
2019-11-15 17:43:24 +01:00
pkgver=1.0.7
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=(
'python2'
)
makedepends=(
'python-sphinx'
2019-04-11 18:32:51 +02:00
'cmake'
)
source=(
2019-11-15 17:43:24 +01:00
"https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.7-1/pam-python-1.0.7.tar.gz"
2019-04-11 18:32:51 +02:00
)
2019-11-15 17:43:24 +01:00
sha256sums=('96ce72fe355b03b87c0eb540ecef06f33738f98f56581e81eb5bffbad1a47e07')
2019-04-11 18:32:51 +02:00
prepare() {
# Preparing pam-python to be installed
2019-11-15 17:43:24 +01:00
cd "$srcdir/pam-python-$pkgver"
2019-04-11 18:32:51 +02:00
sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/setup.py
sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/test.py
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
2019-11-15 17:43:24 +01:00
cd "$srcdir/pam-python-$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
2019-11-15 17:43:24 +01:00
cd "$srcdir/pam-python-$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
}