summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Hesse2015-06-29 13:18:51 +0200
committerChristian Hesse2015-06-29 13:18:51 +0200
commit8a8c37fc8e6226b2334c008800a1184986a984cd (patch)
tree8fb874a7428c80767ee0d075dd2b997fcf85ec37 /PKGBUILD
downloadaur-8a8c37fc8e6226b2334c008800a1184986a984cd.tar.gz
initial import of putty-git 0.63.r301.g35fde00-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6abc07c0bfb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Christian Hesse <mail@eworm.de
+# Contributor: Eric BĂ©langer <eric@archlinux.org> ([extra] package)
+
+pkgname=putty-git
+pkgver=0.63.r301.g35fde00
+pkgrel=1
+pkgdesc="A terminal integrated SSH/Telnet client - git checkout"
+arch=('i686' 'x86_64')
+url="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
+license=('MIT')
+depends=('gtk2')
+makedepends=('git' 'perl' 'halibut')
+conflicts=('putty')
+provides=('putty')
+source=('git://git.tartarus.org/simon/putty.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd putty/
+
+ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
+ echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
+ else
+ echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
+ fi
+}
+
+build() {
+ cd putty/
+
+ ./mkfiles.pl
+ autoreconf -fi
+ ./configure --prefix=/usr
+
+ ( cd doc && make )
+
+ make
+}
+
+package() {
+ cd putty/
+
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+