summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7f6270b7f07c7d80b52ee23489eac41062368db (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
_pkgname=urxvt-perls
pkgname=${_pkgname}-git
pkgver=128.1f4897c
pkgrel=1
pkgdesc="URL and Mouseless text selection for rxvt-unicode"
arch=('any')
url='http://www.github.com/muennich/urxvt-perls'
license=('GPL2')
depends=('rxvt-unicode' 'perl' 'xsel')
provides=("$_pkgname" 'urxvt-url-select' 'urxvt-keyboard-select')
conflicts=("$_pkgname" 'urxvt-url-select' 'urxvt-keyboard-select')
replaces=("$_pkgname" 'urxvt-url-select' 'urxvt-keyboard-select')
install=$_pkgname.install
source=(git://github.com/muennich/urxvt-perls)
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  cd "$srcdir/$_pkgname"

  install -dm755 "$pkgdir"/usr/lib/urxvt/perl
  install -dm755 "$pkgdir"/usr/lib/urxvt/perl/deprecated
  install -t "$pkgdir"/usr/lib/urxvt/perl/deprecated -m644 deprecated/{clipboard,url-select}
  install -t "$pkgdir"/usr/lib/urxvt/perl -m644 keyboard-select
}