summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3991de56796909f4895c8db4c285b2f7af3bb398 (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
# Maintainer: Filip Parag <aur@filiparag.com>

pkgname=wmrc
pkgver=1.1
pkgrel=4
pkgdesc='WMRC is a shell utility for extending window manager capabilities using modules with dependency and error checking.'
arch=('any')
url='https://github.com/filiparag/wmrc'
license=('MIT')
depends=('dash')
makedepends=('git')
source=('git+https://github.com/filiparag/wmrc.git')
sha1sums=('SKIP')

prepare() {
  cd "${pkgname}"
  git checkout "tags/${pkgver}"
}

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

package() {
  cd "${pkgname}"
  install -Dm 755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -d -m 755 "${pkgdir}/usr/share/${pkgname}"
  install -Dm 644 "rc.conf" "${pkgdir}/usr/share/${pkgname}/"
  install -Dm 644 "usage.txt" "${pkgdir}/usr/share/${pkgname}/"
  install -Dm 644 "wmrc.man" "${pkgdir}/usr/share/man/man1/${pkgname}.${pkgver}"
  cp -r --preserve=mode "modules" "${pkgdir}/usr/share/${pkgname}/"
}