summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b9ff5c720a1fe275b552abb3b644493d870fae6 (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
# Maintainer: Alexandre Becoulet <alexandre.becoulet@free.fr>
pkgname=libassh-hg
pkgver=r811.2588cc95e3c9
pkgrel=1
pkgdesc="The asynchronous SSH library"
url="http://libassh.org/"
arch=('i686' 'x86_64')
license=('LGPL2.1')
depends=('zlib' 'openssl' 'libsodium' 'libgcrypt')
makedepends=('mercurial' 'autoconf' 'automake' 'libtool')
provides=('libassh')
conflicts=('libassh')
source=('hg+https://hg.savannah.nongnu.org/hgweb/libassh/')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/libassh"
  printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
  cd "$srcdir/libassh"
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/libassh"
  make DESTDIR="$pkgdir" install
}