summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f2626e4cdf38a7cd5a45801ec9464834a6ff802 (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: Tomas Kral <tomas.kral@gmail.com>
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
}