summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e3b28a7cfb9dfa4a4162edc923638f6e45eb826 (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
32
33
34
35
36
37
38
39
40
41
# Maintainer: Dmitry Morozov <dmorozov@outlook.com>

pkgname=qputty-qt5-git
pkgver=505
pkgrel=1
pkgdesc="A Qt 5 port for putty, the free telnet/ssh client"
arch=('i686' 'x86_64')
url="https://github.com/dsmorozov/qputty-qt5"
license=('MIT LGPL3')
depends=('glibc' 'gcc-libs' 'qt5-base' 'qt5-x11extras' 'libgssglue')
makedepends=('git')
source=('git://github.com/dsmorozov/qputty-qt5.git'
        'git://git.tartarus.org/simon/putty.git')
md5sums=('SKIP'
         'SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --tags)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	git submodule init
	git config submodule.putty.url $srcdir/putty
	git submodule update
}

build() {
	cd "$srcdir/${pkgname%-git}"
	qmake
	make
}

package() {
	cd $srcdir/${pkgname%-git}
	install -Dm0755 qPutty "$pkgdir/usr/bin/qPutty"
	install -Dm0644 qPutty.desktop "$pkgdir/usr/share/applications/qPutty.desktop"
	install -Dm0644 icons/qputty.svgz "$pkgdir/usr/share/icons/hicolor/scalable/apps/qputty.svgz"
	install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/qputty-qt5/LICENSE"
}