1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Roberto Alsina <ralsina@kde.org>
7 pkgdesc="A limited shell for ssh/scp"
9 url="http://sublimation.org/scponly/"
11 makedepends=('openssh')
14 source=(https://downloads.sourceforge.net/sourceforge/scponly/scponly-$pkgver.tgz
16 sha256sums=('1693dd678355749c5d9e48ecdd4628dbfe71d82955afde950ee8d88b5adc01cf'
17 'c194a70d992cf265f35b70808edb6ffeac7ef321dbd6bf12038e9a55f3f6799d')
20 cd "$srcdir"/$pkgname-$pkgver
21 [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc \
22 --enable-scp-compat --enable-winscp-compat --enable-chrooted-binary \
24 sed -i 's|^#elif|#else|' helper.c
29 cd "$srcdir"/$pkgname-$pkgver
30 make DESTDIR="$pkgdir" install
31 install -D -m0644 COPYING "$pkgdir"/usr/share/licenses/scponly/COPYING
32 mv "$pkgdir"/usr/man "$pkgdir"/usr/share/
33 mkdir -p "$pkgdir"/usr/share/doc/scponly
34 cp "$srcdir"/setup_chroot.sh config.h "$pkgdir"/usr/share/doc/scponly/