diff options
author | muhas | 2015-08-04 12:10:01 +0300 |
---|---|---|
committer | muhas | 2015-08-04 12:10:01 +0300 |
commit | b987cd749e1633b832f743be9f01b9095879c719 (patch) | |
tree | 1f0543f2e308385415755d8ceb0a1bb509cdfe29 | |
download | aur-b987cd749e1633b832f743be9f01b9095879c719.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d6f6f20e5137 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = fbless + pkgdesc = fictionbook console viewer + pkgver = 0.2.2 + pkgrel = 1 + url = http://pybookreader.narod.ru/misc.html + arch = any + license = GPL + makedepends = git + depends = python2 + depends = ncurses + +pkgname = fbless + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1b8832c12087 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Contributor: muhas <muhas@mail.ru> +pkgname=fbless +pkgver=0.2.2 +pkgrel=1 +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/matimatik/fbless.git" +_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 +} + + |