aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-02-26 20:14:42 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-02-26 17:39:32 -0300
commit9b99bcb9e354529f69f91583fb247f68dd3372d6 (patch)
treeb1a4da8ce29fb03730a13c514a583ba1638bab79
parente1d002458dd6e0cd92e7959a28628dd47e1ee622 (diff)
downloadaports-9b99bcb9e354529f69f91583fb247f68dd3372d6.tar.bz2
aports-9b99bcb9e354529f69f91583fb247f68dd3372d6.tar.xz
community/lha: modernize
* Fix url * Add check()
-rw-r--r--community/lha/APKBUILD27
1 files changed, 13 insertions, 14 deletions
diff --git a/community/lha/APKBUILD b/community/lha/APKBUILD
index a38de14837..9617bd495c 100644
--- a/community/lha/APKBUILD
+++ b/community/lha/APKBUILD
@@ -1,38 +1,37 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=lha
pkgver=1.14i
-pkgrel=2
+pkgrel=3
pkgdesc="Compression and archive utility for LH-7 format archives"
-url="http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/"
+url="https://github.com/jca02266/lha/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
-depends=""
-makedepends=""
-install=
-source="http://osdn.dl.sourceforge.jp/lha/22231/$pkgname-$pkgver-ac20050924p1.tar.gz"
+checkdepends="bash"
+source="http://osdn.dl.sourceforge.jp/lha/22231/lha-$pkgver-ac20050924p1.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver-ac20050924p1"
-_builddir="$srcdir/$pkgname-$pkgver-ac20050924p1"
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ default_prepare
+ update_config_sub
}
build() {
- cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ make check
}
package() {
- cd "$_builddir"
make "DESTDIR=$pkgdir" install
#install -D -m755 $srcdir/lha $pkgdir/usr/bin/lha
}