summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cc2871c3ae0ba78aa0b684216bbc5367e545e96 (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
# Maintainer: Lex Black <autumn-wind at web dot de>
# Contributor: Army [uli.armbruster (the google thing)]

_pkgname=pim
pkgname=pim-git
pkgver=0.8.0.r0.geb0dbfd
pkgrel=1
pkgdesc="Python image viewer with vim-like keybindings. Git-Version"
arch=('any')
url="https://github.com/Narrat/Pim"
license=('MIT')
depends=('python-gobject')
makedepends=('git')
conflicts=('pim')
provides=('pim=0.8.0')
source=('pim::git://github.com/Narrat/Pim.git')
md5sums=('SKIP')


pkgver() {
  cd $_pkgname

  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd ${srcdir}/${_pkgname}

  install -Dm755 ${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
  install -D -m644 LICENSE $pkgdir/usr/share/licenses/${_pkgname}/LICENSE
  install -D -m644 pim.desktop "${pkgdir}/usr/share/applications/pim.desktop"
}