diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..098fc6e33e70 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Tomas Kral <tomas.kral@gmail.com> +pkgname=nvpy-git +pkgver=VERSION +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=('python2-docutils' 'python2-markdown') +makedepends=('git' 'python2') +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=('nvpy::git+https://github.com/cpbotha/nvpy.git') +md5sums=('SKIP') + +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}" + python2 setup.py install --root="$pkgdir/" --optimize=1 + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |