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

51
yash/PKGBUILD Normal file
View File

@@ -0,0 +1,51 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=yash
pkgver=2.52
pkgrel=2
pkgdesc="Yet Another SHell is a POSIX-compliant command line shell"
arch=('i686' 'x86_64')
url='https://magicant.github.io/yash/'
license=('GPL-2')
depends=('ncurses')
makedepends=('asciidoc' 'ed')
install=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz::https://deb.debian.org/debian/pool/main/y/yash/yash_${pkgver}.orig.tar.gz"
"remove-mofiles.patch")
sha512sums=('f773203f4b40bd2ffa949669b2a40b8f9219dbef9cd781622ef63d85d04f7bd8dff7c00f2b32a48838ef8865c3e56536c506bbabd2a9015f277924e0539df8d1'
'56e7975fad00b867432e197f34d02664e203800d41be19f08a21b52f466668a8aa4d62e67c4f7f936fdf60a0b8f47b30d2c678a9b23215955da1c0f311f37ba7')
prepare() {
cd "${pkgname}-${pkgver}"
rm -rf ./po
patch -Np1 -i ${srcdir}/remove-mofiles.patch
}
build() {
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--enable-array \
--enable-dirstack \
--enable-double-bracket \
--enable-help \
--enable-history \
--enable-lineedit \
--enable-nls \
--enable-printf \
--enable-socket \
--enable-test \
--enable-ulimit
make
}
package() {
cd "${pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
install -Dm0644 doc/*.{css,html} -t "${pkgdir}/usr/share/doc/${pkgname}/"
install -Dm0644 doc/ja/*.{css,html} -t "${pkgdir}/usr/share/doc/${pkgname}/ja/"
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

83
yash/remove-mofiles.patch Normal file
View File

@@ -0,0 +1,83 @@
--- a/Makefile.in 2021-10-11 15:58:11.000000000 +0200
+++ b/Makefile.in 2024-04-23 23:36:34.920120424 +0200
@@ -63,7 +63,7 @@
default_loadpath = @default_loadpath@
enable_nls = @enable_nls@
-all: $(TARGET) share/config tester mofiles docs
+all: $(TARGET) share/config tester docs
.c.o:
@rm -f $@
@@ -137,14 +137,12 @@
echo $(INSTALL_DATA) share/$$file $(DESTDIR)$(yashdatadir)/$$file || true; \
$(INSTALL_DATA) share/$$file $(DESTDIR)$(yashdatadir)/$$file; \
done
- @+if $(enable_nls); then (cd po && $(MAKE) $@); fi
@+(cd doc && $(MAKE) install-rec)
install-html:
@+(cd doc && $(MAKE) $@-rec)
installdirs: installdirs-binary installdirs-data
installdirs-binary: $(INSTALLBINDIRS)
installdirs-data: installdirs-data-main
- @+if $(enable_nls); then (cd po && $(MAKE) $@); fi
@+(cd doc && $(MAKE) installdirs-rec)
installdirs-data-main: $(INSTALLDATADIRS)
installdirs-html: $(DESTDIR)$(htmldir)
@@ -162,7 +160,6 @@
-rmdir $(DESTDIR)$(yashdatadir)/completion
-rmdir $(DESTDIR)$(yashdatadir)/initialization
-rmdir $(DESTDIR)$(yashdatadir)
- @+if $(enable_nls); then (cd po && $(MAKE) $@); fi
@+(cd doc && $(MAKE) $@-rec)
DISTDIR = $(TARGET)-$(VERSION)
@@ -171,7 +168,6 @@
DIST_TARGETS = dist-gzip dist-xz
RM_DISTDIR = rm -rf $(DISTDIR) $(DISTDIR).tar
$(DISTDIR): _PHONY
- @+(cd po && $(MAKE) update-po) # must be done first
rm -fr $@
mkdir -m 755 $@
@+umask 022; \
@@ -266,7 +262,6 @@
-@+(cd builtins && $(MAKE) mostlyclean)
-@+(cd doc && $(MAKE) mostlyclean)
-@+(cd lineedit && $(MAKE) mostlyclean)
- -@+(cd po && $(MAKE) mostlyclean)
-@+(cd tests && $(MAKE) mostlyclean)
_mostlyclean:
-rm -rf $(OBJS) $(BYPRODUCTS) $(DISTDIR)
@@ -274,7 +269,6 @@
-@+(cd builtins && $(MAKE) clean)
-@+(cd doc && $(MAKE) clean)
-@+(cd lineedit && $(MAKE) clean)
- -@+(cd po && $(MAKE) clean)
-@+(cd tests && $(MAKE) clean)
_clean: _mostlyclean
-rm -rf $(TARGET) share/config $(DISTS)
@@ -282,7 +276,6 @@
-@+(cd builtins && $(MAKE) distclean)
-@+(cd doc && $(MAKE) distclean)
-@+(cd lineedit && $(MAKE) distclean)
- -@+(cd po && $(MAKE) distclean)
-@+(cd tests && $(MAKE) distclean)
-@+$(MAKE) _distclean
_distclean: _clean
@@ -293,7 +286,6 @@
-@+(cd builtins && $(MAKE) maintainer-clean)
-@+(cd doc && $(MAKE) maintainer-clean)
-@+(cd lineedit && $(MAKE) maintainer-clean)
- -@+(cd po && $(MAKE) maintainer-clean)
-@+(cd tests && $(MAKE) maintainer-clean)
-@+$(MAKE) _distclean
-rm -rf $(SOURCES:.c=.d)
@@ -305,7 +297,7 @@
config.status: configure
$(SHELL) config.status --recheck
-.PHONY: all test tests check tester mofiles docs man html install install-strip install-binary install-binary-strip install-data install-html installdirs installdirs-binary installdirs-data installdirs-data-main installdirs-html uninstall uninstall-binary uninstall-data dist dist-tarZ dist-gzip dist-bzip2 dist-xz dist-zstd dist-shar dist-zip dist-all distcheck distfiles copy-distfiles makedeps cscope mostlyclean _mostlyclean clean _clean distclean _distclean maintainer-clean
+.PHONY: all test tests check tester docs man html install install-strip install-binary install-binary-strip install-data install-html installdirs installdirs-binary installdirs-data installdirs-data-main installdirs-html uninstall uninstall-binary uninstall-data dist dist-tarZ dist-gzip dist-bzip2 dist-xz dist-zstd dist-shar dist-zip dist-all distcheck distfiles copy-distfiles makedeps cscope mostlyclean _mostlyclean clean _clean distclean _distclean maintainer-clean
_PHONY:
@MAKE_INCLUDE@ alias.d

11
yash/yash.install Normal file
View File

@@ -0,0 +1,11 @@
post_install() {
grep -qe '^/usr/bin/yash$' etc/shells || echo '/usr/bin/yash' >> etc/shells
}
post_upgrade() {
post_install
}
pre_remove() {
sed -i -r '/^(\/usr)?\/bin\/yash$/d' etc/shells
}