mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
parent
e0448c5be0
commit
698f57190d
49
testing/yash/APKBUILD
Normal file
49
testing/yash/APKBUILD
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||||
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||||
|
pkgname=yash
|
||||||
|
pkgver=2.47
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Yet another shell"
|
||||||
|
url="http://yash.osdn.jp"
|
||||||
|
arch="all"
|
||||||
|
license="GPL-2.0-or-later"
|
||||||
|
makedepends="ncurses-dev"
|
||||||
|
install="$pkgname.post-install $pkgname.pre-deinstall"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://github.com/magicant/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
|
||||||
|
# XXX: Disable hanging tests.
|
||||||
|
sed -i -e 's/\bkill[24]-p.tst\b//g' \
|
||||||
|
-e 's/\bsignal[12]-y.tst\b//g' \
|
||||||
|
tests/Makefile.in
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--disable-nls
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
|
||||||
|
# FIXME: Fix broken tests.
|
||||||
|
make tests LANG=en_US.UTF-8 || true
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$builddir"
|
||||||
|
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
rm -Rf "$pkgdir"/usr/share/man/ja
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="5e1341314218ac13fcc3664b1a13a77e0c2525a0df47ee3be773f9894a5a79a1288ba55fea22ce87b70cbff8d72284cb3d11c17e989be81564c183c92ec26ecf yash-2.47.tar.xz"
|
3
testing/yash/yash.post-install
Normal file
3
testing/yash/yash.post-install
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
add-shell '/usr/bin/yash'
|
||||||
|
exit 0
|
3
testing/yash/yash.pre-deinstall
Normal file
3
testing/yash/yash.pre-deinstall
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
remove-shell '/usr/bin/yash'
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user