# Maintainer: mrdotx _pkgname=rxvt-unicode pkgname=rxvt-unicode-truecolor-wide-glyphs pkgver=9.30 pkgrel=2 pkgdesc='Unicode enabled rxvt-clone terminal emulator (urxvt) with true color, enhanced glyphs and improved font rendering support' arch=('i686' 'x86_64') url='http://software.schmorp.de/pkg/rxvt-unicode.html' license=('GPL') depends=( 'libxft' 'libxt' 'perl' 'startup-notification' 'libptytty' ) optdepends=( 'gtk2-perl: to use the urxvt-tabbed' 'libxft-bgra: support for BGRA glyphs and scaling' ) provides=( 'rxvt-unicode' 'rxvt-unicode-terminfo' 'urxvt-resize-font' 'urxvt-keyboard-select' ) conflicts=( 'rxvt-unicode' 'rxvt-unicode-terminfo' 'urxvt-resize-font' 'urxvt-perls' 'urxvt-perls-git' ) source=( http://dist.schmorp.de/rxvt-unicode/$_pkgname-$pkgver.tar.bz2 'urxvt.desktop' 'urxvtc.desktop' 'urxvt-tabbed.desktop' 'resize-font' 'keyboard-select' '24-bit-color.patch' 'enable-wide-glyphs.patch' 'improve-font-rendering.patch' ) sha1sums=('700265a255eedf0f553cadfe5484bf71f8fb74c2' 'b5a4507f85ebb7bac589db2e07d9bc40106720d9' '62c4ffecfce6967def394dd4d418b68652372ea2' 'cd204d608d114d39c80331efe0af0231ad6b7e18' 'a61366659c73bd551fa99a8415bb71e033897598' '9883d0c31b45f8521829ea6a2041f2e9eb7abe6a' 'b5a239179a6da062bcc9c5a36e870387080372d2' '5c11265e5c54fdc7e005aa0a3c55de3374f15a73' 'a62225c18458ed9d1743699ef98f41d3d157f145') prepare() { ################################################################ # # # If you have problems with character rendering, # # try to install libxft-bgra from the aur. # # # ################################################################ cd $_pkgname-$pkgver # the repo with original 24-bit-color.patch is no longer available: # https://gist.githubusercontent.com/dan-santana/63271adf12171e0fc0bc/raw/70c6343d1c0b3bca0aba4f587ed501e6cbd98d00/24-bit-color.patch # patch rewritten to work with version ≥ 9.26 patch -p0 -i ../24-bit-color.patch # https://aur.archlinux.org/packages/rxvt-unicode-cvs-patched-wideglyphs patch -p0 -i ../enable-wide-glyphs.patch # https://gist.githubusercontent.com/emonkak/28bbc5474697695321452b6d9bf1d0bd/raw/a888c37ae10376598e663cf989132648f89219c0/rxvt-unicode-9.22-improve-font-endering.patch # patch rewritten to work with version ≥ 9.29 patch -p0 -i ../improve-font-rendering.patch ################################################################ # # # If someone has better solutions for the rewritten patches, # # please contact me! # # # ################################################################ } build() { cd $_pkgname-$pkgver ################################################################ # # # This is an opinionated build. If you miss features, feel # # free to enable them below before you build the package. # # (eg. --enable-pixbuf and --enable-fading) # # # ################################################################ # disable smart-resize (FS#34807) # do not specify --with-terminfo (FS#46424) ./configure \ --prefix=/usr \ --enable-xft \ --enable-font-styles \ --enable-xim \ --enable-unicode3 \ --enable-combining \ --disable-fallback \ --disable-pixbuf \ --disable-startup-notification \ --enable-transparency \ --disable-fading \ --disable-rxvt-scroll \ --disable-next-scroll \ --disable-xterm-scroll \ --enable-frills \ --disable-iso14755 \ --disable-keepscrolling \ --enable-selectionscrolling \ --enable-mousewheel \ --disable-slipwheeling \ --disable-smart-resize \ --enable-text-blink \ --enable-pointer-blank \ --enable-perl \ --enable-256-color \ --enable-24-bit-color \ --enable-wide-glyphs make } package() { # install freedesktop menu for _f in urxvt urxvtc urxvt-tabbed; do install -Dm 644 $_f.desktop "$pkgdir/usr/share/applications/$_f.desktop" done # install perl script resize-font (https://github.com/simmel/urxvt-resize-font) install -Dm 644 resize-font "$pkgdir/usr/lib/urxvt/perl/resize-font" # install perl script keyboard-select (https://github.com/muennich/urxvt-perls) install -Dm 644 keyboard-select "$pkgdir/usr/lib/urxvt/perl/keyboard-select" cd $_pkgname-$pkgver # install terminfo export TERMINFO="$pkgdir/usr/share/terminfo" install -dm 755 "$TERMINFO" make DESTDIR="$pkgdir" install # install the tabbing wrapper (requires gtk2-perl) sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed install -Dm 755 doc/rxvt-tabbed "$pkgdir/usr/bin/urxvt-tabbed" }