summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2bd4d3ad91cd8ee0817570dc7c7ba953cdcdb335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Filip Parag <filip@parag.rs>

pkgname=wmrc
pkgver=2.1.2
pkgrel=1
pkgdesc='Simple modular window manager extensions'
arch=('any')
url='https://github.com/filiparag/wmrc'
license=('MIT')
depends=('coreutils')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('edd37873dfc03c003ca021c8b4b57ebd58277a111b4cde99d26347215e33c70d')

package() {
  cd "${pkgname}-${pkgver}" || return 1
  install -Dm 775 "./${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm 664 "./lib${pkgname}.sh" "${pkgdir}/usr/share/${pkgname}/libwmrc.sh"
  install -Dm 644 ./completions.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish"
  install -Dm 644 "./${pkgname}.1.man" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
  sed -i "s/^WMRC_DIR=.*$/WMRC_DIR=\/usr\/share\/${pkgname}/" "${pkgdir}/usr/bin/${pkgname}"
}