summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c181368a193f453a8ba061545530a41330ebb6f (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=stumpwm-contrib-git
pkgver=r149.afcac0a
pkgrel=1
pkgdesc="Contribution resotiry for stumpwm"
arch=('any')
url="https://github.com/stumpwm/stumpwm-contrib.git"
license=('GPL2')
depends=('bash' 'stumpwm')
makedepends=('git')
conflicts=('stumpwm-git')
source=("git+https://github.com/stumpwm/stumpwm-contrib.git")
md5sums=('SKIP')

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

package() {
  cd "${pkgname%-git}"
  _contribdest=/usr/share/stumpwm/contrib
  install -d $pkgdir/${_contribdest}
  cp -ra * $pkgdir/${_contribdest}
}