summaryrefslogtreecommitdiff
path: root/community/mg/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mg/PKGBUILD')
-rw-r--r--community/mg/PKGBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/community/mg/PKGBUILD b/community/mg/PKGBUILD
index be271595b..607c3b6c2 100644
--- a/community/mg/PKGBUILD
+++ b/community/mg/PKGBUILD
@@ -1,34 +1,38 @@
-# $Id: PKGBUILD 62917 2012-01-29 07:15:53Z spupykin $
+# $Id: PKGBUILD 99541 2013-10-29 11:42:26Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Hannes Rist <hrist@phreeknet.org>
pkgname=mg
-pkgver=20110905
+pkgver=20130922
pkgrel=1
pkgdesc="mg is Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team."
arch=('i686' 'x86_64')
url="http://homepage.boetes.org/software/mg/"
-depends=('ncurses')
+depends=('ncurses' 'libbsd')
+makedepends=('bmake' 'libclens')
license=('custom')
options=(!libtool)
source=(http://homepage.boetes.org/software/mg/mg-$pkgver.tar.gz
- README
cleanup.patch)
-md5sums=('2de35316fa8ebafe6003efaae70b723e'
- '8cc5195ad4fabcf7c6782764f9617748'
- 'e009afe0d249593f3436b2fea110f72e')
+md5sums=('35bd196ab32bae3531d6bc48be8779d0'
+ '163ca88d422cf0cf0a3a44de9a2a3ac3')
-build() {
+prepare() {
cd $srcdir/$pkgname-$pkgver
- unset CFLAGS
patch -p1 <$srcdir/cleanup.patch
- ./configure
- make prefix=/usr
+}
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ bmake prefix=/usr
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/usr/bin
- make install INSTALL=/bin/install prefix=$pkgdir/usr
+ bmake install INSTALL=install prefix=/usr DESTDIR=$pkgdir BINDIR=/usr/bin
mkdir -p $pkgdir/usr/share/
- mv $pkgdir/usr/man $pkgdir/usr/share/
- install -D -m0644 $srcdir/README $pkgdir/usr/share/licenses/$pkgname/README
+ install -D -m0644 README $pkgdir/usr/share/licenses/$pkgname/README
}