summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b895741f5c77dd208cb2f324e73cab859597e740 (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
38
39
40
41
42
43
44
45
46
# Maintainer: Jenya Sovetkin <e dot sovetkin at gmail dot com>
pkgname=shellinabox-git
pkgver=r397.0c8c295
pkgrel=2
pkgdesc="Implementation of a web server that can export arbitrary command line tools to a web based terminal emulator"
arch=('any')
url="https://github.com/shellinabox/shellinabox"
license=('GPL2')
depends=('pam' 'openssl')
makedepends=('git' 'gcc' 'autoconf' 'automake')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('shellinabox@.service'
        'git+https://github.com/shellinabox/shellinabox')
noextract=()
md5sums=('9778d64973cd9dd7cf2225cd9af0cd09'
         'SKIP')

_gitname=shellinabox

pkgver() {
  cd "${srcdir}/${_gitname}"

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


package() {
  cd "$srcdir/$_gitname"

  autoreconf -i

  export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/}"
  ./configure  --prefix=/usr
  make

  make DESTDIR="$pkgdir/" install
  install -Dm655 "$srcdir/shellinabox@.service"  "$pkgdir/usr/lib/systemd/system/shellinabox@.service"
}

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