summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a58abc6282c3cf0c3999d5d6d4bde652b9a5698 (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
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Roel Blaauwgeers <roel at ttys0.nl>
# Contributor: Archme <archme.mail@gmail.com>

set -u
_pyver="python2"
_pybase='lshell'
_pyverother='python python2 '
_pyverother=(${_pyverother//${_pyver} /})
pkgname="${_pyver}-${_pybase}"
pkgver='0.9.18'
pkgrel='1'
pkgdesc="Limited Shell, lets you restrict a user's environment to limited sets of commands, and more"
arch=('any')
#url='http://lshell.ghantoos.org/'
url="https://github.com/ghantoos/${_pybase}"
license=('GPL')
makedepends=("${_pyver}" "${_pyver}-distribute") # same as python-setuptools
backup=('etc/lshell.conf')
_srcdir="${_pybase}-${pkgver}"
_verwatch=("${url}/releases" "${url#*github.com}/archive/\(.*\)\.tar\.gz" 'l')
source=("${_pybase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
#source=("${pkgname}-${pkgver}.tar.gz::https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz/download")
sha256sums=('7ffb37bf7a1d8c63845939a2e916e45b9cd9f321daa6b3e4c8f680e3c50e8bbd')

package() {
  set -u
  depends=("${_pyver}") # "${_pydepends[@]}")
  conflicts=("${_pybase}" "${_pyverother[@]/%/-${_pybase}}")
  cd "${_srcdir}"
  ${_pyver} setup.py install --root="${pkgdir}" --optimize=1
  install -Dpm644 'COPYING' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  set +u
}
set +u

# vim:set ts=2 sw=2 et: