-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPKGBUILD
38 lines (33 loc) · 1.03 KB
/
PKGBUILD
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
# Maintainer: Samed Beyribey <[email protected]>
pkgname=python2-stormssh-gui
pkgver=20130829
pkgrel=1
pkgdesc="storm is a command line tool to manage your hosts at sshconfig"
arch=('any')
url="https://github.com/emre/storm-gui"
license=('GPL')
makedepends=('git')
depends=('python2-stormssh-git' 'wxpython')
source=('stormgui.desktop')
sha256sums=('a58706f32c78826839519893cd519477d4472d24d1e82a831a020ffc89f46e9c')
_gitroot=git://github.com/emre/storm-gui.git
_gitname=storm-gui
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
}
package() {
cd "$srcdir/$_gitname-build"
python2 setup.py install --root="$pkgdir/"
install -Dm644 $srcdir/stormgui.desktop $pkgdir/usr/share/applications/stormgui.desktop
}