blob: bd81054896ff9e580691add9a102b5fe56b32404 (
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
|
# Maintainer: Gabriel Laskar <gabriel at lse dot epita dot fr>
pkgname=oksh
pkgver=7.5
pkgrel=1
url='https://github.com/ibara/oksh/'
pkgdesc='Ported version of ksh from OpenBSD'
license=('custom: Public Domain' 'ISC' 'BSD')
depends=('glibc' 'ncurses')
arch=('i686' 'x86_64')
source=(https://github.com/ibara/oksh/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('40b895c3f8e9311bfe2b230e9b3786712550ef488ced33bfd7cd3f89fceeed5d')
backup=(etc/ksh.kshrc)
install=oksh.install
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr
sed -n '/Copyright/,/PERFORMANCE/p' strtonum.c > ISC-LICENSE
sed -n '/Copyright/,/SUCH DAMAGE./p' vis.c > BSD-LICENSE
cat LEGAL > PUBLIC_DOMAIN-LICENSE
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" install
install -Dm644 ksh.kshrc "${pkgdir}/etc/ksh.kshrc"
install -Dm644 ISC-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/ISC-LICENSE"
install -Dm644 BSD-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/BSD-LICENSE"
install -Dm644 PUBLIC_DOMAIN-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/PUBLIC_DOMAIN-LICENSE"
}
# vim:set ts=2 sw=2 et:
|