archrelease: copy trunk to community-any
[ArchLinux/community.git] / rxvt-unicode / trunk / PKGBUILD
blob403a33bb4f18f9205b6eff1bb87bc3f4925ae829
1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 # Contributor: Sébastien Luttringer
4 # Contributor: Angel Velasquez <angvp@archlinux.org>
5 # Contributor: tobias <tobias@archlinux.org>
6 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
8 pkgbase=rxvt-unicode
9 pkgname=('rxvt-unicode' 'rxvt-unicode-terminfo')
10 pkgver=9.31
11 pkgrel=2
12 arch=('x86_64')
13 url='http://software.schmorp.de/pkg/rxvt-unicode.html'
14 license=('GPL')
15 makedepends=(
16   'libxft'
17   'libxt'
18   'libxext'
19   'libxmu'
20   'perl'
21   'startup-notification'
22   'libnsl'
23   'libptytty'
24   'signify'
26 source=("$pkgname-$pkgver.tar.bz2::http://dist.schmorp.de/rxvt-unicode/$pkgname-$pkgver.tar.bz2"
27         "$pkgname-$pkgver.tar.bz2.signature::http://dist.schmorp.de/rxvt-unicode/$pkgname-$pkgver.tar.bz2.sig"
28         "$pkgname-$pkgver.pub::http://dist.schmorp.de/signing-key.pub"
29         'urxvt.desktop'
30         'urxvtc.desktop'
31         'urxvt-tabbed.desktop')
32 sha256sums=('aaa13fcbc149fe0f3f391f933279580f74a96fd312d6ed06b8ff03c2d46672e8'
33             'fd43ac9f271437389c97d5ee208f414abd0aab01a0824c29533a4077ba7d6f3c'
34             '48ef5720d77a870f25737b8f66fe2c1f88a01810013df70cb8155add904288e4'
35             '5f9c435d559371216d1c5b49c6ec44bfdb786b12d925d543c286b0764dea0319'
36             '91536bb27c6504d6cb0d33775a0c4709a4b439670b900f0c278c25037f19ad66'
37             'ccd7c436e959bdc9ab4f15801a67c695b382565b31d8c352254362e67412afcb')
38 sha512sums=('4d14ecbbb62de1b1c717277f5aae5cfb536e11392f2d4b82c884c1713f437fce8e9dd69a328fa353a55d068d8ee4121a31900f45191acec172d5dc76652b6255'
39             '7f3b836dd46c1a70384420b77181b11cbb598ac6e7ab144e0ce132c99e84caa4eb76c95f532fbeec02e0e549f22269c60b369ece677aed14c0aed7092ef1dbf9'
40             'a09a434387e22612a9225ddfa444044977712c6410efe8a77a33d8aa607bd1acbef2a1da08b62e21a4b070f0974ba94ae907ac0452b5d060e33a1c051a7780e4'
41             '7184714a908071a4e8e5c065c5f90255e94dfd072df459c8d6f66fca3647781b3d1f6908b9303bcfd0d5b3f2e3822a8d66efaaa8a7c4d44f6e682839031a6e99'
42             'aa501eeeb220ba03b3f101b160230612efbca87694fef88c469b2976d29769c24b34576ea82f6c7941fad6039ac776f32e397add9b957b49bf2e84aeb67b66d6'
43             '18c7afb0c3eb8c832893b9ead09d25374b70ae1cd5479a5291d11794906c53daa6f1a1bf698b37efda062bb2b991cacac53a0a6c185ca416b8718fde2bb6a7af')
45 prepare() {
46   # hacking around to validate with signify
47   mv -v "$pkgname-$pkgver.tar.bz2."{signature,sig}
48   signify -V -p "$pkgname-$pkgver.pub" -m "$pkgname-$pkgver.tar.bz2"
51 build() {
52   cd ${pkgname}-${pkgver}
53   # we disable smart-resize (FS#34807)
54   # do not specify --with-terminfo (FS#46424)
55   # do not specify --disable-frills (FS#77474)
56   ./configure \
57     --prefix=/usr \
58     --enable-256-color \
59     --enable-combining \
60     --enable-fading \
61     --enable-font-styles \
62     --enable-iso14755 \
63     --enable-keepscrolling \
64     --enable-lastlog \
65     --enable-mousewheel \
66     --enable-next-scroll \
67     --enable-perl \
68     --enable-pointer-blank \
69     --enable-rxvt-scroll \
70     --enable-selectionscrolling \
71     --enable-slipwheeling \
72     --disable-smart-resize \
73     --enable-startup-notification \
74     --enable-transparency \
75     --enable-unicode3 \
76     --enable-utmp \
77     --enable-wtmp \
78     --enable-xft \
79     --enable-xim \
80     --enable-xterm-scroll \
81     --disable-pixbuf
82   make
85 package_rxvt-unicode() {
86   pkgdesc='Unicode enabled rxvt-clone terminal emulator (urxvt)'
87   depends=(
88     'rxvt-unicode-terminfo'
89     'libxft'
90     'perl'
91     'startup-notification'
92     'libnsl'
93     'libptytty'
94     'libxext'
95     'libxmu'
96   )
97   optdepends=('gtk2-perl: to use urxvt-tabbed')
99   # install freedesktop menu
100   for _f in urxvt urxvtc urxvt-tabbed; do
101     install -Dm 644 ${_f}.desktop "${pkgdir}/usr/share/applications/${_f}.desktop"
102   done
104   cd ${pkgname}-${pkgver}
105   # workaround terminfo installation
106   export TERMINFO="${srcdir}/terminfo"
107   install -d "${TERMINFO}"
108   make DESTDIR="${pkgdir}" install
109   # install the tabbing wrapper ( requires gtk2-perl! )
110   sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed
111   install -Dm 755 doc/rxvt-tabbed "${pkgdir}/usr/bin/urxvt-tabbed"
114 package_rxvt-unicode-terminfo() {
115   pkgdesc='Terminfo files for urxvt'
116   conflict=('rxvt-unicode<=9.18-6')
117   install -dm 755 "${pkgdir}/usr/share/"
118   mv terminfo "${pkgdir}/usr/share/"
121 # vim: ts=2 sw=2 et: