summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 232fc482c79ba4bdc42afa0b429baf082cf83dbc (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Maintainer: novenary <streetwalrus@codewalr.us>

_pkgname=rxvt-unicode
pkgname=rxvt-unicode-intensityfix
pkgver=9.22
pkgrel=17
pkgdesc='A unicode enabled rxvt-clone terminal emulator (urxvt) (opinionated build)'
arch=('i686' 'x86_64')
url='http://software.schmorp.de/pkg/rxvt-unicode.html'
license=('GPL')
depends=('libxft' 'perl' 'startup-notification' 'gdk-pixbuf2')
provides=('rxvt-unicode' 'rxvt-unicode-terminfo')
conflicts=('rxvt-unicode' 'rxvt-unicode-terminfo')
source=(
  "http://dist.schmorp.de/rxvt-unicode/Attic/$_pkgname-$pkgver.tar.bz2"
  'intensity.patch'
  'background-img-use-color.patch'
  'font-resize.patch'
  'font-width-fix.patch'
  'line-spacing-fix.patch'
  'sgr-mouse-mode.patch'
  '256color.patch'
  'enable-wide-glyphs.patch'
  'perl-segfault.patch'
)
md5sums=('93782dec27494eb079467dacf6e48185'
         '9e2ccfa07aafa6aeaf1dbdd005437af7'
         'd8377a6ec47a7913636fbc368aded94b'
         '4f6c9f1b51f28645ef5f114c04da27e6'
         'fef588d6bfe52304bf80e8f1771577b6'
         '9f3248bc397ee76b008375f2ab0f201a'
         'f8325b0a33999db4d5d1eeac4f320156'
         'fb78c2ecf87626962734320cc2bb7ab1'
         'fa7e51d6a521605ff1b18470510156b0'
         '688e82954aaf0663356330c61f505ef4')

prepare() {
  cd $_pkgname-$pkgver

  patch -p0 -i ../intensity.patch
  patch -p0 -i ../background-img-use-color.patch
  patch -p0 -i ../font-resize.patch

  # From https://aur.archlinux.org/packages/rxvt-unicode-patched/
  patch -p0 -i ../font-width-fix.patch
  patch -p0 -i ../line-spacing-fix.patch
  patch -p0 -i ../sgr-mouse-mode.patch

  # From https://aur.archlinux.org/packages/rxvt-unicode-256xresources/
  patch -p0 -i ../256color.patch

  # from https://aur.archlinux.org/packages/rxvt-unicode-cvs-patched-wideglyphs/
  patch -p1 -i ../enable-wide-glyphs.patch

  # https://bugs.archlinux.org/task/67691
  patch -p1 -i ../perl-segfault.patch
}

build() {
  cd $_pkgname-$pkgver

  export CXXFLAGS="$CXXFLAGS -std=c++03"

  # we disable smart-resize (FS#34807)
  # do not specify --with-terminfo (FS#46424)
  ./configure \
    --prefix=/usr \
    --enable-256-color \
    --enable-combining \
    --disable-fading \
    --enable-font-styles \
    --disable-iso14755 \
    --disable-keepscrolling \
    --enable-lastlog \
    --enable-mousewheel \
    --disable-next-scroll \
    --enable-perl \
    --enable-pointer-blank \
    --disable-rxvt-scroll \
    --enable-selectionscrolling \
    --disable-slipwheeling \
    --disable-smart-resize \
    --enable-startup-notification \
    --disable-transparency \
    --enable-unicode3 \
    --enable-utmp \
    --enable-wide-glyphs \
    --enable-wtmp \
    --enable-xft \
    --enable-xim \
    --disable-xterm-scroll \
    --enable-pixbuf \
    --enable-frills
  make
}

package() {
  # install terminfo
  cd $_pkgname-$pkgver
  export TERMINFO="$pkgdir/usr/share/terminfo"
  install -dm 755 "$TERMINFO"
  make DESTDIR="$pkgdir" install
  rm -f "$pkgdir"/usr/bin/urxvt{c,d}
}

# vim:set ts=2 sw=2 et: