pkgbuilds/rxvt-unicode-cvs/PKGBUILD

118 lines
3.4 KiB
Text
Raw Permalink Normal View History

2019-01-28 16:36:38 +02:00
# Maintainer: Von Random <von@vdrandom.org>
# Contributor: Adriaan Zonnenberg <amz@adriaan.xyz>
# Contributor: Florian Bruhin (The-Compiler) <archlinux.org@the-compiler.org>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Sébastien Luttringer
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
_pkgname=rxvt-unicode
pkgname=('rxvt-unicode-cvs' 'rxvt-unicode-terminfo-cvs')
pkgver=$(date +%Y%m%d)
pkgrel=1
arch=('x86_64')
url='http://software.schmorp.de/pkg/rxvt-unicode.html'
license=('GPL')
makedepends=('libxft' 'perl' 'startup-notification' 'libnsl' 'gdk-pixbuf2' 'cvs')
source=(
urxvt.desktop
urxvtc.desktop
urxvt-tabbed.desktop
font-width-fix.patch
line-spacing-fix.patch
terminfo-truecolor.patch
urxvt-sgr.patch
)
sha256sums=(
5f9c435d559371216d1c5b49c6ec44bfdb786b12d925d543c286b0764dea0319
91536bb27c6504d6cb0d33775a0c4709a4b439670b900f0c278c25037f19ad66
ccd7c436e959bdc9ab4f15801a67c695b382565b31d8c352254362e67412afcb
686770fe4e8d6bb0ba497ad2e1f217d17515f2544d80abe76496c63ead2bfaa4
546a388d0595404a59c71c3eaeba331031032a75f96c57e9a860f27bbd7ebfcc
f60d92d855530fd3f80138eb888a5b4205f6f444e5c41f2c30d9637b6b39c2a7
2019-01-28 16:36:38 +02:00
f36110dce2dce4d6e275410de820f314b72a02dbad08f637c64b0da769c0c8f4
)
2019-04-08 16:06:22 +03:00
prefix='/usr'
patches=(
font-width-fix.patch
line-spacing-fix.patch
urxvt-sgr.patch
terminfo-truecolor.patch
)
2019-01-28 16:36:38 +02:00
prepare() {
cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co ${_pkgname}
cd ${_pkgname}
for patch in ${patches[@]}; do
patch -p0 -i ../$patch
done
2019-01-28 16:36:38 +02:00
}
build() {
cd ${_pkgname}
# we disable smart-resize (FS#34807)
# do not specify --with-terminfo (FS#46424)
./configure \
2019-04-08 16:06:22 +03:00
--prefix=$prefix \
2019-01-28 16:36:38 +02:00
--enable-256-color \
--enable-combining \
--enable-fading \
--enable-font-styles \
--enable-iso14755 \
--enable-keepscrolling \
--enable-lastlog \
--enable-mousewheel \
--enable-next-scroll \
--enable-perl \
--enable-pointer-blank \
--enable-rxvt-scroll \
--enable-selectionscrolling \
--enable-slipwheeling \
--disable-smart-resize \
--enable-startup-notification \
--enable-transparency \
--enable-unicode3 \
--enable-utmp \
--enable-wtmp \
--enable-xft \
--enable-xim \
--enable-xterm-scroll \
--disable-frills
make
}
package_rxvt-unicode-cvs() {
pkgdesc='A unicode enabled rxvt-clone terminal emulator (urxvt) - latest cvs revision'
depends=('rxvt-unicode-terminfo-cvs' 'libxft' 'perl' 'startup-notification' 'libnsl')
optdepends=('gtk2-perl: to use the urxvt-tabbed')
provides=('rxvt-unicode')
conflicts=('rxvt-unicode')
# install freedesktop menu
for _f in urxvt urxvtc urxvt-tabbed; do
install -Dm 644 ${_f}.desktop "${pkgdir}/usr/share/applications/${_f}.desktop"
done
cd $_pkgname
# workaround terminfo installation
export TERMINFO="${srcdir}/terminfo"
install -d "${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"
}
package_rxvt-unicode-terminfo-cvs() {
provides=('rxvt-unicode-terminfo')
conflicts=('rxvt-unicode-terminfo')
pkgdesc='Terminfo files for urxvt'
conflict=('rxvt-unicode<=9.18-6')
install -dm 755 "${pkgdir}/usr/share/"
mv terminfo "${pkgdir}/usr/share/"
}
# vim: ts=2 sw=2 et: