blob: 7254bc6eb4dc3e72fde7569d1c702a6e0bd2d39c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $Id: PKGBUILD 62917 2012-01-29 07:15:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Hannes Rist <hrist@phreeknet.org>
pkgname=mg
pkgver=20110905
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' 'mips64el')
url="http://homepage.boetes.org/software/mg/"
depends=('ncurses')
license=('custom')
options=(!libtool)
source=(http://homepage.boetes.org/software/mg/mg-$pkgver.tar.gz
README
cleanup.patch)
md5sums=('2de35316fa8ebafe6003efaae70b723e'
'8cc5195ad4fabcf7c6782764f9617748'
'e009afe0d249593f3436b2fea110f72e')
build() {
cd $srcdir/$pkgname-$pkgver
patch -p1 <$srcdir/cleanup.patch
# The scripts building this package won't see and fix the warnings,
# even if they make the build fail.
sed -ri '/^CFLAGS\+=/d' Makefile.in
./configure
make prefix=/usr
mkdir -p $pkgdir/usr/bin
make install prefix=$pkgdir/usr
mkdir -p $pkgdir/usr/share/
mv $pkgdir/usr/man $pkgdir/usr/share/
install -D -m0644 $srcdir/README $pkgdir/usr/share/licenses/$pkgname/README
}
|