aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/mrxvt/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/mrxvt/APKBUILD b/main/mrxvt/APKBUILD
index 3dba1c4c83..81c1e7f947 100644
--- a/main/mrxvt/APKBUILD
+++ b/main/mrxvt/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Mark Constable <markc@renta.net>
pkgname=mrxvt
pkgver=0.5.4
-pkgrel=0
+pkgrel=1
pkgdesc="A multi-tabbed X terminal emulator based on rxvt code"
url="http://materm.sourceforge.net/wiki/pmwiki.php"
license="GPL"
@@ -14,10 +14,14 @@ source="
mrxvt.desktop
"
-build()
-{
- cd "$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
patch -p1 < ../mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch || return 1
+}
+
+build() {
+ cd "$_builddir"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -36,6 +40,10 @@ build()
--enable-backspace-key \
--with-save-lines=2048 || return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR=$pkgdir install || return 1
install -Dm644 ../mrxvt.desktop $pkgdir/usr/share/applications/mrxvt.desktop