# Maintainer: Tomas Kral pkgname=nvpy-git pkgver=r724.c1b8549 pkgrel=1 pkgdesc="Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer." arch=("any") url="https://github.com/cpbotha/nvpy" license=("BSD") depends=("python-docutils" "python-markdown" "python-setuptools" "tk" "python-simplenote") makedepends=("git" "python") provides=("${pkgname%-*}") conflicts=("${pkgname%-*}") source=("nvpy::git+https://github.com/cpbotha/nvpy.git" "nvpy.desktop") md5sums=('SKIP' '3af5dfdda04db2262c7dfab9c0c4c681') pkgver() { cd "$srcdir/${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$srcdir/${pkgname%-git}" } package() { cd "$srcdir/${pkgname%-git}" python setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 "$srcdir"/nvpy.desktop "${pkgdir}"/usr/share/applications/nvpy.desktop mkdir -p $pkgdir/usr/share/licenses/$pkgname cp LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE }