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