blob: 32df9a44559033d2e9a712033397c62ff0ee5ae9 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: jrobb <jrobb at proton mail dot ch>
# thanks, speps!
pkgname=pumpa-git
pkgver=git
pkgrel=4
pkgdesc="A simple pump.io client written in C++ and Qt, git version"
arch=('i686' 'x86_64')
url="https://pumpa.branchable.com/"
license=('GPL3')
depends=('qt5-base' 'aspell' 'tidyhtml' 'libxkbcommon-x11')
makedepends=('git')
install="$pkgname.install"
source=("$pkgname.desktop")
md5sums=('SKIP')
_appname=pumpa
_gitRepo="$_appname.branchable.com"
prepare() {
cd ${srcdir}
_statusfile=${srcdir}/status.txt
msg "Connecting to the server...."
#check if the clone directory already exists:
if [ ! -d ./${_gitRepo} ]; then
msg "repo doesn't exist-- cloning..."
msg ${_gitRepo}
git clone git://${_gitRepo}/ ./${_appname}
echo "clone" > ${_statusfile}
else
msg "git pull-ing..."
cd ${_appname}
git pull origin master > ${_statusfile}
fi
msg "git checkout done or server timeout"
}
build() {
#_statusfile=${srcdir}/status.txt
#msg "$_statusfile"
#_status=$(grep 'Already' $_statusfile &> /dev/null ; echo $?)
#msg "$_status"
#if [ "$_status" == "0" ] ; then
# msg "already up-to-date"
#else
msg "Starting make..."
cd ${_appname}
# icon path fix
sed -i 's|/.*/||' ${_appname}.desktop
qmake
make
#fi
}
package() {
cd ${_appname}
#_statusfile=${srcdir}/status.txt
#_status=$(grep Already ${_statusfile} &> /dev/null ; echo $?)
#if [ "$_status" == "0" ] ; then
# bin
install -Dm755 ${_appname} \
"$pkgdir/usr/bin/${_appname}"
# desktop file
install -Dm644 ${_appname}.desktop \
"$pkgdir/usr/share/applications/${_appname}.desktop"
# icon
install -Dm644 images/${_appname}.png \
"$pkgdir/usr/share/pixmaps/${_appname}.png"
#fi
}
|