blob: 1cf22ca625bf31955ec3f87185b09b4b2ce39067 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=yash
pkgver=2.49
pkgrel=1
pkgdesc="Yet another shell"
url="http://yash.osdn.jp"
arch="all"
license="GPL-2.0-or-later"
depends="$pkgname-completion"
makedepends="ncurses-dev"
install="$pkgname.post-install $pkgname.pre-deinstall"
subpackages="$pkgname-completion::noarch $pkgname-doc"
source="https://github.com/magicant/yash/releases/download/$pkgver/yash-$pkgver.tar.xz"
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
# Remove completions for programs that are not available on Alpine
# (just to decrease size of the package).
cd share/completion
rm carthage dnf pgawk useradd who
}
build() {
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-nls
make
}
check() {
# FIXME: Fix broken tests.
make tests LANG=en_US.UTF-8 || true
}
package() {
make DESTDIR="$pkgdir" install
rm -Rf "$pkgdir"/usr/share/man/ja
}
completion() {
pkgdesc="$pkgdesc (command-line completion)"
depends=""
amove usr/share/yash/completion
}
sha512sums="99d98cfbe09aa746f2707217ecb506d8d5998df4a603ac276a8a67782fdcb3a7bd41fb34744f3834e319b0fdb0b1fd480cf9e2a4b835fec3e758280e13036db5 yash-2.49.tar.xz"
|