updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / mrxvt / PKGBUILD
blobcc59fb0a41e7dc22a1e8b1ea6a60479693b4e933
1 # Contributor: tobias <tobias@archlinux.org>
2 # Contributor: twm
3 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
5 pkgname=mrxvt
6 pkgver=0.5.4
7 pkgrel=5
8 pkgdesc="A multi-tabbed X terminal emulator based on rxvt code (also known as materm)"
9 arch=('i686' 'x86_64')
10 url="http://materm.sourceforge.net"
11 license=('GPL')
12 depends=('libpng' 'libjpeg' 'libxft' 'libxpm')
13 optdepends=('perl: for mrxvtset.pl script')
14 replaces=('materm')
15 backup=('etc/mrxvt/mrxvtrc' 'etc/mrxvt/submenus.menu' 'etc/mrxvt/default.menu')
16 source=("http://downloads.sourceforge.net/materm/$pkgname-$pkgver.tar.gz"
17         'mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch'
18         'mrxvt.desktop' 
19         'libpng14.patch')
20 md5sums=('0232c8868484751dcb931a28f0756f69'
21          '2b6ecc9d68185e56a50eca0a2548fa8b'
22          '3dcb8e404e6324d7768b43fe6a7986c4'
23          '3465d6b86d550e9aa868a918d2e4e3f2')
25 build() {
26  cd "$srcdir/$pkgname-$pkgver"
27  patch -p0 < "$srcdir/mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch"
28  patch -Np1 -i "$srcdir/libpng14.patch"
29  autoreconf -fi
30  ./configure --prefix=/usr --sysconfdir=/etc --enable-xft --enable-text-shadow \
31    --enable-transparency --enable-smart-resize --enable-menubar \
32    --disable-ourstrings --enable-linespace --enable-256colors --enable-xim \
33    --enable-thai --enable-greek --enable-cjk --enable-backspace-key \
34    --with-save-lines=2048
35  make
38 package() {
39  cd "$srcdir/$pkgname-$pkgver"
40  make DESTDIR="$pkgdir" install
41  install -Dm 644 "$srcdir/mrxvt.desktop" "$pkgdir/usr/share/applications/mrxvt.desktop"