summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78da28e5fd192c710b84e37069424130990a1998 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Derek Taylor (DistroTube) <derek@distrotube.com>
pkgname=dmscripts-git
_pkgname=dmscripts
pkgver=1.0.r510.b134b06
pkgrel=1
pkgdesc="A collection of dmenu scripts"
arch=('any')
url="https://gitlab.com/dwt1/dmscripts.git"
license=('GPL3')
depends=(dmenu ffmpeg findutils xclip xdotool xorg-xrandr bind jq youtube-dl)
groups=()
makedepends=(pandoc git)
checkdepends=()
optdepends=(
  'emacs: editor for dm-confedit'
  'didyoumean: used by dm-dictionary'
  'translate-shell: used by dm-dictionary'
  'libnotify: used by dm-logout'
  'maim: used by dm-main'
  'pipewire: used by dm-pipewire-out-switcher'
  'mpc: used by dm-music'
  'mpd: used by dm-music'
  'timidity++: used by dm-music'
  'wildmidi: used by dm-music'
  'qutebrowser: used by dm-bookman'
  'reddio: used by dm-reddit'
  'yad: used by dm-reddit and dm-weather'
  'slock: used by dm-logout'
  'imv: the default image viewer used by dm-setbg, supports wayland'
  'sxiv: an alternative image viewer used by dm-setbg, X11 only'
  'xwallpaper: used by dm-setbg in x11'
  'swaybg: used by dm-setbg in wayland'
  'udisks2: used by dm-usbmount'
  'wl-clipboard: wayland alternative to xclip'

  )
provides=(dmscripts)
conflicts=(dmscripts-git)
replaces=()
backup=()
options=()
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
  cd "${_pkgname}"
  printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${_pkgname}"
  DESTDIR="$pkgdir/" make clean build
}

package() {
  cd ${_pkgname}
  NAME="${pkgname}" DESTDIR="${pkgdir}/" make install
}

post_install () {
  mandb
}