summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f026a8ad5f7d2cf334a332bd46199520a473f77 (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
# Maintainer: Manuel Palenzuela <sadshinobi@protonmail.com>

author=thytom
pkgname=dwmbar-git
_gitname=dwmbar
pkgver=0.r74.
pkgrel=1
pkgdesc='Simple and modular status bar for dwm.'
url='https://github.com/thytom/dwmbar.git'
arch=('any')
license=('GPL')
optdepends=('dwm')
makedepends=('git')
provides=('dwmbar')

source=("git://github.com/$author/$_gitname.git")

md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
    cd "$_gitname"
    printf '0.r%s.%s' \
        "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_gitname"
  # Install the program.
  mkdir -p "$pkgdir/usr/share/$_gitname/modules"
  install -Dm755 dwmbar "$pkgdir/usr/bin/$_gitname"
  cp -a --no-preserve=ownership {config,bar.sh,modules} "$pkgdir/usr/share/$_gitname"
  chmod +x "$pkgdir/usr/bin/$_gitname"
# chmod -R 777 "$pkgdir/usr/share/$_gitname"
}