summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be43f43969853dc9c271716a87fc450546655b43 (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
# Maintainer: JumperPunk <spartan074 _at_ gmail dot com>

pkgname=udiskie-dmenu-git
_gitroot='udiskie-dmenu'
pkgver=0.3.0.r5.378d374
pkgrel=1
pkgdesc='manage removable devices via dmenu (or rofi)'
arch=('any')
url="https://github.com/fogine/${_gitroot}"
license=('MIT')
depends=('udiskie' 'dmenu' 'nodejs' 'libnotify')
optdepends=('rofi: use rofi as the front-end')
makedepends=('git')
conflicts=()
provides=()
source=("git://github.com/fogine/${_gitroot}.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitroot}"
  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
  cd "${srcdir}/${_gitroot}"
  install ${_gitroot} -D "${pkgdir}/usr/bin/${_gitroot}"
}