summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 651a175128dc32dc46d65b366f81eab6ee78e013 (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
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Mike Nagie <echo 'cHJvbWlrZTE5ODdAZ21haWwuY29tCg==' | base64 -d>
# Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>

pkgname='blink-darcs'
pkgver=20160602
pkgrel='2'
pkgdesc='A state of the art, easy to use SIP client'
arch=(
	'i686'
	'x86_64'
)
url='http://www.icanblink.com'
license=('GPL')
depends=(
	'python2-pyqt'
	'python2-sipsimple'
	'libvncserver'
	'python2-gmpy2'
)
makedepends=('darcs')

_darcstrunk="http://devel.ag-projects.com/repositories"
_darcsmod="blink-qt"

build() {
	msg "Connecting to Darcs server for $_darcsmod..."
  
	if [[ -d "$srcdir/$_darcsmod/_darcs" ]]; then
		msg2 "Updating local Darcs repository..."
		cd "$srcdir/$_darcsmod"
		darcs pull -a "$_darcstrunk/$_darcsmod"
	else
		msg2 "Downloading Darcs repository..."
		darcs get --lazy "$_darcstrunk/$_darcsmod"
	fi
  
	msg2 "Cloning for build..."
	[[ -d "$srcdir/$_darcsmod-build" ]] && rm -rf "$srcdir/$_darcsmod-build"
	cp -r "$srcdir/$_darcsmod" "$srcdir/$_darcsmod-build"

	msg "Starting build..."
	cd "$srcdir/$_darcsmod-build"
	python2 setup.py build
}

package() {
	cd "$srcdir/$_darcsmod-build"
	python2 setup.py install --root="$pkgdir"

	install -Dm 644 'debian/blink.desktop' "$pkgdir/usr/share/applications/blink.desktop"
	install -Dm 644 'debian/blink.xpm' "$pkgdir/usr/share/pixmaps/blink.xpm"
	install -Dm 644 'debian/blink.1' "$pkgdir/usr/share/man/man1/blink.1"
}