summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e33ecea0a78ef54f1feb57016730eb83bffe5cf (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
# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
# Contributor: Benjamin Frank <ben+aur@pipsfrank.de>

pkgname=urxvt-resize-font-git
_gitname=urxvt-resize-font
pkgver=10.2bbde29
pkgrel=1
pkgdesc='An urxvt plugin to adjust the font size on the fly'
arch=('any')
url="https://github.com/simmel/urxvt-resize-font"
license=('MIT')
depends=('rxvt-unicode')
makedepends=('git')
provides=("urxvt-resize-font")
conflicts=("urxvt-resize-font")
install=urxvt-resize-font-git.install
source=(${pkgname}::git+https://github.com/simmel/${_gitname}.git)
sha256sums=('SKIP')

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

prepare() {
  cd ${pkgname}
  head resize-font -n14|tail -n13 > LICENSE
}

package() {
  cd ${pkgname}
  install -Dm 755 resize-font "${pkgdir}/usr/lib/urxvt/perl/resize-font"
  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim: ts=2 sw=2 et: