initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

32
oksh/PKGBUILD Normal file
View File

@@ -0,0 +1,32 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=oksh
pkgver=7.3
pkgrel=1
pkgdesc="Ported version of ksh from OpenBSD"
url='https://github.com/ibara/oksh/'
license=('Public-Domain' 'ISC' 'Modified-BSD')
arch=('i686' 'x86_64')
backup=(etc/ksh.kshrc)
install=$pkgname.install
depends=('glibc' 'ncurses')
source=(https://github.com/ibara/oksh/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('4e7cf2914ed16d14edbff4ba1a96db196ecde34171e77603e68ae8a81b3675ac61c2ae95da85c017566655b6a5a7ad38191526e5bcedf927cdbdc1f6bc76c967')
build() {
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--bindir=/bin
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 PUBLIC_DOMAIN-LICENSE ISC-LICENSE BSD-LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}