summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Becoulet2020-11-27 23:54:11 +0100
committerAlexandre Becoulet2020-11-27 23:54:11 +0100
commit6f574100965e0674c3b3790a509955b1e2a6ed4e (patch)
treebbe19197a51f6062355e192e50e1cec045c3e940
downloadaur-6f574100965e0674c3b3790a509955b1e2a6ed4e.tar.gz
creating the libassh-hg package
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD31
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..07c9c543edf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = libassh-hg
+ pkgdesc = The asynchronous SSH library
+ pkgver = r811.2588cc95e3c9
+ pkgrel = 1
+ url = http://libassh.org/
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = mercurial
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = libtool
+ depends = zlib
+ depends = openssl
+ depends = libsodium
+ depends = libgcrypt
+ provides = libassh
+ conflicts = libassh
+ source = hg+https://hg.savannah.nongnu.org/hgweb/libassh/
+ md5sums = SKIP
+
+pkgname = libassh-hg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9b9ff5c720a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}