aboutsummaryrefslogtreecommitdiffstats
path: root/main/mosh
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-03-27 06:40:05 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-27 06:40:05 +0000
commit66267e53b63572b77371521dbffe42e4b4420db1 (patch)
tree5ee1fbc2ac24189f7a938d8e1448ba6cb79f6881 /main/mosh
parentb7fd8a9b14832387bb999e939852a88022876c7f (diff)
downloadaports-66267e53b63572b77371521dbffe42e4b4420db1.tar.bz2
aports-66267e53b63572b77371521dbffe42e4b4420db1.tar.xz
main/mosh: modernize APKBUILD
Diffstat (limited to 'main/mosh')
-rw-r--r--main/mosh/APKBUILD24
1 files changed, 11 insertions, 13 deletions
diff --git a/main/mosh/APKBUILD b/main/mosh/APKBUILD
index 2c6500b4c3..386e084c37 100644
--- a/main/mosh/APKBUILD
+++ b/main/mosh/APKBUILD
@@ -2,12 +2,13 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mosh
pkgver=1.3.0
-pkgrel=0
+pkgrel=1
pkgdesc="Mobile shell surviving disconnects with local echo and line editing"
url="https://mosh.org"
arch="all"
license="GPL3+"
depends="$pkgname-client $pkgname-server"
+options="!check"
makedepends="ncurses-dev zlib-dev libressl-dev perl-dev perl-io-tty protobuf-dev
automake autoconf libtool"
subpackages="$pkgname-doc $pkgname-client $pkgname-server
@@ -16,11 +17,11 @@ source="https://mosh.org/$pkgname-$pkgver.tar.gz
disable-utf8-check.patch"
builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- default_prepare || return 1
+prepare() {
+ default_prepare
cd "$builddir"
- ./autogen.sh || return 1
+ ./autogen.sh
}
build() {
@@ -31,14 +32,13 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
bashcomp() {
@@ -47,17 +47,15 @@ bashcomp() {
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$builddir"/conf/bash-completion/completions/mosh \
- "$subpkgdir"/usr/share/bash-completion/completions/$pkgname \
- || return 1
+ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname
}
server() {
replaces="mosh"
pkgdesc="Mosh server"
- depends=
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/mosh-server \
- "$subpkgdir"/usr/bin/ || return 1
+ "$subpkgdir"/usr/bin/
}
client() {
@@ -66,7 +64,7 @@ client() {
depends="openssh-client perl-io-tty"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/mosh-client \
- "$subpkgdir"/usr/bin/ || return 1
+ "$subpkgdir"/usr/bin/
}
sha512sums="2b43e3e3fb2ccf6c29a889f10dfc0d5504dbca6fabaf10419f4e355e4b73d64cc1e632324e447b25ac24ee18bb88d8a9a23f9c4824b267343fb86e26e7d5c54b mosh-1.3.0.tar.gz