archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / scponly / trunk / PKGBUILD
blob808230a04eb0d0df8be3e029f92c704aa5899eaf
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Roberto Alsina <ralsina@kde.org>
4 pkgname=scponly
5 pkgver=4.8
6 pkgrel=11
7 pkgdesc="A limited shell for ssh/scp"
8 arch=(x86_64)
9 url="http://sublimation.org/scponly/"
10 depends=('glibc')
11 makedepends=('openssh')
12 license=('custom')
13 options=(docs)
14 source=(https://downloads.sourceforge.net/sourceforge/scponly/scponly-$pkgver.tgz
15         setup_chroot.sh)
16 sha256sums=('1693dd678355749c5d9e48ecdd4628dbfe71d82955afde950ee8d88b5adc01cf'
17             'c194a70d992cf265f35b70808edb6ffeac7ef321dbd6bf12038e9a55f3f6799d')
19 build() {
20   cd "$srcdir"/$pkgname-$pkgver
21   [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc \
22         --enable-scp-compat --enable-winscp-compat --enable-chrooted-binary \
23         --sbindir=/usr/bin
24   sed -i 's|^#elif|#else|' helper.c
25   make
28 package() {
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/