diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 169 |
1 files changed, 91 insertions, 78 deletions
@@ -1,89 +1,102 @@ -# Maintainer Seva Alekseyev <sevaa@yarxi.ru> -# Maintainer Stoyan Minaev <stoyan.minaev@gmail.com> +# Maintainer: Zichen Liu <btstream@gmail.com> +# Contributor: Daniel Hahler <archlinux+aur@thequod.de> +# Contributor: Florian Bruhin (The-Compiler) <archlinux.org@the-compiler.org> +# Contributor: Daniel Micay <danielmicay@gmail.com> +# Contributor: Sébastien Luttringer <seblu@aur.archlinux.org> +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: tobias <tobias@archlinux.org> +# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org -pkgbase=pkgbase -pkgname=yarxi -pkgver=1.10 +_pkgname=rxvt-unicode +pkgname=rxvt-unicode-patched-with-truecolor +pkgver=9.22 pkgrel=1 -pkgdesc="Japanese-Russian kanji and word dictionary" -url="http://www.susi.ru/yarxi/" -license=('custom') -_source=( - "http://www.susi.ru/yarxi/yarxi_${pkgver}-${pkgrel}_amd64.deb" - "http://ftp.uk.debian.org/debian/pool/main/q/qt4-x11/libqtcore4_4.8.7+dfsg-11_amd64.deb" - "http://ftp.uk.debian.org/debian/pool/main/q/qt4-x11/libqtgui4_4.8.7+dfsg-11_amd64.deb" - "http://ftp.uk.debian.org/debian/pool/main/q/qt4-x11/libqt4-network_4.8.7+dfsg-11_amd64.deb" -) -arch=('x86_64') -_md5sums=( - '812d2265816ed781751c5c0eb6664d91' - 'b243ada8569b2b3d4586dc4178fd8d56' - '797e351a57c9d56368f710e7cba40f21' - 'b3cff12767e21d3a76794046557d3df0' -) -depends=( - ttf-sazanami nas -) +pkgdesc='Unicode enabled rxvt-clone terminal emulator (urxvt) with fixed font spacing and truecolor support' +arch=('i686' 'x86_64') +url='http://software.schmorp.de/pkg/rxvt-unicode.html' +license=('GPL') +depends=('libxft' 'perl' 'startup-notification' 'rxvt-unicode-terminfo') +optdepends=('gtk2-perl: to use the urxvt-tabbed') +provides=(rxvt-unicode) +conflicts=(rxvt-unicode) +source=(http://dist.schmorp.de/rxvt-unicode/$_pkgname-$pkgver.tar.bz2 + 'urxvt.desktop' + 'urxvtc.desktop' + 'urxvt-tabbed.desktop' + 'font-width-fix.patch' + '24-bit-color.patch' + 'line-spacing-fix.patch' + 'https://gist.githubusercontent.com/alexoj/df5bae7a4825cb596581/raw/75a1e75c2ae1ec5c0db68a29f8a6821e9e3d87a5/sgr-mouse-mode.patch' + 'fix-smart-resize-with-x11-frame-borders.patch' # will be in 9.22+ + ) +sha1sums=('e575b869782fbfed955f84f48b204ec888d91ba1' + 'b5a4507f85ebb7bac589db2e07d9bc40106720d9' + '62c4ffecfce6967def394dd4d418b68652372ea2' + 'cd204d608d114d39c80331efe0af0231ad6b7e18' + '01ee8f212add79a158dcd4ed78d0ea1324bdc59b' + '9f5db305863b17175e72f9e2d4a78d0d7f25fd34' + 'b7fde1c46af45e831828738874f14b092b1e795f' + 'dfbc8729c545105eff21e20ef3a4a3841a68a192' + '6dfa49a211c48193c8d87fb9993ed459b2b4387b') prepare() { - cd $srcdir/ - echo "Due to 'makepkg' and 'PKGBUILD' specs limitations I need to dowanload sources and validate them by myself" - for source_url in ${_source[@]}; do - source_filename=${source_url##*/} - if [ ! -f "$source_filename" ]; then - echo "Downloading next source - $source_filename ..." - curl -A DUMMY -O "$source_url"; - else - echo "Found already downloaded source - $source_filename" - fi - done - echo "And now we must validated dowanloaded sources ..." - for (( i=0; i<${#_source[@]}; ++i )); do - source_url=${_source[i]} - source_filename=${source_url##*/} - source_expected_md5sum=${_md5sums[i]} - source_actual_md5sum=$(md5sum $source_filename | awk '{print $1}') - if [ "$source_actual_md5sum" == "$source_expected_md5sum" ]; then - echo "Validated next source - $source_filename" - else - echo "Found corrupted source - $source_filename"; return 1 - fi - done + cd $_pkgname-$pkgver + + patch -p0 -i ../font-width-fix.patch + patch -p0 -i ../24-bit-color.patch + patch -p0 -i ../line-spacing-fix.patch + patch -p0 -i ../sgr-mouse-mode.patch + patch -p1 -i ../fix-smart-resize-with-x11-frame-borders.patch } build() { - cd $srcdir/ - mkdir -p deb/{$pkgname,qt4core,qt4gui,qt4network} - bsdtar xf yarxi_${pkgver}-${pkgrel}_amd64.deb -C deb/$pkgname/ - bsdtar xf libqtcore4_4.8.7+dfsg-11_amd64.deb -C deb/qt4core/ - bsdtar xf libqtgui4_4.8.7+dfsg-11_amd64.deb -C deb/qt4gui/ - bsdtar xf libqt4-network_4.8.7+dfsg-11_amd64.deb -C deb/qt4network/ - for dir in deb/$pkgname deb/qt4core deb/qt4gui deb/qt4network; do - cd $dir; tar xf data.tar.*; cd $srcdir - done + cd $_pkgname-$pkgver + + # do not specify --with-terminfo (FS#46424) + ./configure \ + --prefix=/usr \ + --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 \ + --enable-smart-resize \ + --enable-startup-notification \ + --enable-transparency \ + --enable-unicode3 \ + --enable-utmp \ + --enable-wtmp \ + --enable-xft \ + --enable-xim \ + --enable-xterm-scroll \ + --enable-24-bit-color + make } package() { - cd $srcdir/ - mkdir -p $pkgdir/usr/lib/ - mkdir -p $pkgdir/usr/bin/ - mkdir -p $pkgdir/usr/share/ - mkdir -p $pkgdir/usr/share/applications/ - mkdir -p $pkgdir/usr/share/doc/$pkgname/ - mkdir -p $pkgdir/usr/share/icons/hicolor/{16x16/apps,32x32/apps,48x48/apps}/ - mkdir -p $pkgdir/usr/share/pixmaps/ - mkdir -p $pkgdir/usr/share/$pkgname/ - install -m 0755 $srcdir/deb/$pkgname/usr/bin/$pkgname $pkgdir/usr/bin/$pkgname - install -m 0755 $srcdir/deb/qt4core/usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7 $pkgdir/usr/lib/libQtCore.so.4 - install -m 0755 $srcdir/deb/qt4gui/usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.7 $pkgdir/usr/lib/libQtGui.so.4 - install -m 0755 $srcdir/deb/qt4network/usr/lib/x86_64-linux-gnu/libQtNetwork.so.4.8.7 $pkgdir/usr/lib/libQtNetwork.so.4 - install -m 0644 $srcdir/deb/$pkgname/usr/share/applications/seva-yarxi.desktop $pkgdir/usr/share/applications/ - install -m 0644 $srcdir/deb/$pkgname/usr/share/doc/$pkgname/copyright $pkgdir/usr/share/doc/$pkgname/ - for icons in 16x16 32x32 48x48; do - install -m 0644 $srcdir/deb/$pkgname/usr/share/icons/hicolor/$icons/apps/seva-yarxi.png $pkgdir/usr/share/icons/hicolor/$icons/apps/ - done - install -m 0644 $srcdir/deb/$pkgname/usr/share/pixmaps/*.xpm $pkgdir/usr/share/pixmaps/ - install -m 0644 $srcdir/deb/$pkgname/usr/share/$pkgname/yarxice.db $pkgdir/usr/share/$pkgname/ -} -#vim: syntax=sh + # install freedesktop menu + for _f in urxvt urxvtc urxvt-tabbed; do + install -Dm644 $_f.desktop "$pkgdir/usr/share/applications/$_f.desktop" + done + + cd $_pkgname-$pkgver + + # 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" +} |