summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f11f7ffe1b869d605c37ab521ea066e47e0557c (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
# Maintainer: Matteo Piccinini (loacker) <matteo.piccinini@gmail.com>
# Contributor: Justin Lavoie <just1602@riseup.net>
# Contributor: Viktor Stanchev <me aatt viktorstanchev doot com>

pkgname=urxvt-font-size-git
pkgver=r32.0984499
pkgrel=1
pkgdesc='On-the-fly URxvt font size adjustments'
arch=('any')
url="https://github.com/majutsushi/${pkgname%-git}"
license=('MIT')
depends=('rxvt-unicode'
         'xorg-xrdb'
         'xorg-xlsfonts')
makedepends=('git')
install="${pkgname%-git}.install"
source=("git+https://github.com/majutsushi/${pkgname%-git}.git")
md5sums=('SKIP')

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

package() {
    cd "$srcdir/${pkgname%-git}"
    install -D -m755 font-size "$pkgdir/usr/lib/urxvt/perl/font-size"
    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -D -m644 README.markdown "$pkgdir/usr/share/doc/$pkgname/README.markdown"
}