blob: 2fb3842b7ccdc28aac55abf0a7ce59af4f168ac4 (
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 59301 2011-11-22 22:07:16Z ttopper $
# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
# Contributor: Daniel Hommel <dhommel@gmail.com>
pkgname=mksh
pkgver=R40c
pkgrel=2
pkgdesc="The MirOS KornShell - an enhanced version of the public domain ksh"
url="http://mirbsd.de/mksh"
license=("custom")
makedepends=('cpio')
arch=('i686' 'x86_64')
install=mksh.install
source=("https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$pkgver.cpio.gz"
"https://www.mirbsd.org/TaC-mksh.txt")
md5sums=('43a79f721091833bdab3d00fbfe54a14'
'6baf6a174d89c47cac86118dc9e93faa')
build() {
cd "$srcdir"
# makepkg can't extract cpio files
cpio -mid < "$pkgname-$pkgver.cpio"
cd "$srcdir/$pkgname"
sh Build.sh -r -c lto
./test.sh
gzip mksh.1
}
package() {
cd "$srcdir/$pkgname"
install -D -m 755 mksh "$pkgdir/bin/mksh"
install -D -m 644 mksh.1.gz "$pkgdir/usr/share/man/man1/mksh.1.gz"
install -D -m 644 dot.mkshrc "$pkgdir/etc/skel/.mkshrc"
install -D -m 644 "$srcdir/TaC-mksh.txt" "$pkgdir/usr/share/licenses/mksh/TaC-mksh.txt"
}
# vim:set ts=2 sw=2 et:
|