summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77285f6f7d4a4bb64e9134110e0cb4cbbba95aae (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
# Maintainer: Dimitri Kaparis <kaparis.dimitri@gmail.com>
# Contributor: Daniel Reuter <daniel.robin.reuter@googlemail.com>

pkgname=qtodotxt-git
pkgver=1.4.0.213.gb61a11d
pkgrel=2
pkgdesc="A cross-platform UI client for todo.txt files (see todotxt.com)."
arch=('any')
url="https://github.com/mNantern/QTodoTxt"
license=('GPL3')
depends=('python-pyside' 'python-pyqt5' 'python-dateutil')
makedepends=('git')
provides=('qtodotxt')
conflicts=('qtodotxt' 'qtodotxt-hg')
install=$pkgname.install
_gitname=QTodoTxt
source=("git+https://github.com/mNantern/$_gitname")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --long --tags | sed 's/^v//;s/([^-]*-g)/r&/;s/-/./g'
}

package() {
  cd "$srcdir/$_gitname"
  install -Dm755 bin/qtodotxt $pkgdir/usr/share/qtodotxt/bin/qtodotxt
  cp -pr qtodotxt "$pkgdir/usr/share/qtodotxt/"
  install -Dm644 artwork/icon/qTodo-512.png "${pkgdir}/usr/share/qtodotxt/artwork/icon/qTodo-512.png"
  install -Dm644 packaging/Debian/qtodotxt.desktop "${pkgdir}/usr/share/applications/qtodotxt.desktop"
  mkdir -p $pkgdir/usr/bin/
  ln -s /usr/share/qtodotxt/bin/qtodotxt $pkgdir/usr/bin/qtodotxt
}