blob: ddae6febf2aa17ee3ea0dd4312bbc25d8904540b (
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
|
# Contributor: muhas <muhas@mail.ru>
pkgname=fbless
pkgver=0.2.2
pkgrel=3
pkgdesc="fictionbook console viewer"
url="http://pybookreader.narod.ru/misc.html"
license=("GPL")
depends=('python2' 'ncurses')
makedepends=('git')
arch=('any')
source=()
md5sums=()
_gitdir="fbless"
_giturl="https://github.com/ashinkarov/fbless"
_gitbranch="master"
_commit="baa99b59a429af7bb3de877ac11df82fb7d46935"
build() {
# Change into source directory
cd "${srcdir}"
# Clone or pull from GIT server, and notify user of the status
msg "Connecting to GIT server...."
if [[ -d $_gitdir ]] ; then
cd "$_gitdir" && git pull origin "$_gitbranch"
msg "The local files are updated."
else
git clone "$_giturl" "$_gitdir"
cd "$_gitdir"
fi
git checkout "$_commit"
}
package() {
cd "$srcdir/$_gitdir"
python2 setup.py install --root=$pkgdir
}
|