mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-12 09:41:18 +02:00
Merge branch 'master' into feature/archpkg
This commit is contained in:
commit
991e84c1f6
2 changed files with 9 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
pkgbase = pam-python
|
||||
pkgdesc = Python for PAM
|
||||
pkgver = 1.0.7
|
||||
pkgver = 1.0.8
|
||||
pkgrel = 1
|
||||
url = https://github.com/boltgolt/howdy
|
||||
arch = x86_64
|
||||
|
@ -9,8 +9,8 @@ pkgbase = pam-python
|
|||
makedepends = cmake
|
||||
depends = pam
|
||||
depends = python2
|
||||
source = https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.7-1/pam-python-1.0.7.tar.gz
|
||||
sha256sums = 96ce72fe355b03b87c0eb540ecef06f33738f98f56581e81eb5bffbad1a47e07
|
||||
source = https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.8-1/pam-python-1.0.8.tar.gz
|
||||
sha256sums = fc69d7717db0509111500a81053487fa7684e1be3b7d0ae2b51970b6fdc918f6
|
||||
|
||||
pkgname = pam-python
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: boltgolt <boltgolt@gmail.com>
|
||||
# Maintainer: Kelley McChesney <kelley@kelleymcchesney.us>
|
||||
pkgname=pam-python
|
||||
pkgver=1.0.7
|
||||
pkgver=1.0.8
|
||||
pkgrel=1
|
||||
pkgdesc="Python for PAM"
|
||||
arch=('x86_64')
|
||||
|
@ -16,28 +16,26 @@ makedepends=(
|
|||
'cmake'
|
||||
)
|
||||
source=(
|
||||
"https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.7-1/pam-python-1.0.7.tar.gz"
|
||||
"https://downloads.sourceforge.net/project/${pkgname}/pam-python-${pkgver}-1/${pkgname}-${pkgver}.tar.gz"
|
||||
)
|
||||
sha256sums=('96ce72fe355b03b87c0eb540ecef06f33738f98f56581e81eb5bffbad1a47e07')
|
||||
sha256sums=('fc69d7717db0509111500a81053487fa7684e1be3b7d0ae2b51970b6fdc918f6')
|
||||
|
||||
prepare() {
|
||||
# Preparing pam-python to be installed
|
||||
cd "$srcdir/pam-python-$pkgver"
|
||||
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
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
sed -i'' 's|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile
|
||||
sed -n '/^License/,/^--$/p' README.txt | grep -v -e '^License' -e '^-\+' > $srcdir/LICENSE
|
||||
}
|
||||
|
||||
build() {
|
||||
# Building pam-python
|
||||
cd "$srcdir/pam-python-$pkgver"
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
PREFIX=/usr make
|
||||
}
|
||||
|
||||
package() {
|
||||
# Installing pam-python
|
||||
cd "$srcdir/pam-python-$pkgver"
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
PREFIX=/usr make DESTDIR="$pkgdir/" install
|
||||
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue