aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-07-14 01:27:05 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-14 15:15:23 +0000
commit60b0176a1aaf62eb7aa2a2b18b8ba5f05a3ca577 (patch)
tree39a1ddfa2f2ad534f6922c023e4e37cd17a5e5b1
parent8946cac0fef1006a59354fdafedbdf1e4290a365 (diff)
downloadaports-60b0176a1aaf62eb7aa2a2b18b8ba5f05a3ca577.tar.gz
aports-60b0176a1aaf62eb7aa2a2b18b8ba5f05a3ca577.tar.bz2
aports-60b0176a1aaf62eb7aa2a2b18b8ba5f05a3ca577.tar.xz
community/urlview: modernize
fixes #11741
-rw-r--r--community/urlview/APKBUILD53
1 files changed, 21 insertions, 32 deletions
diff --git a/community/urlview/APKBUILD b/community/urlview/APKBUILD
index 1f39a57beb..f87f86d4a0 100644
--- a/community/urlview/APKBUILD
+++ b/community/urlview/APKBUILD
@@ -1,38 +1,29 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=urlview
# ghbump to update http://sprunge.us/bQYI
_project="sigpipe/urlview"
_sha=08767aa863cd27d1755ba0aff65b8cc1a0c1446a
pkgver=20131023
-pkgrel=0
+pkgrel=1
pkgdesc="urlview is a program for extracting URLs from text files"
+options="!check" # No testsuite
url="https://github.com/sigpipe/urlview"
arch="all"
-license="GPL"
-depends=""
-depends_dev="ncurses-dev"
-makedepends="$depends_dev automake autoconf libtool"
-install=""
+license="GPL-2.0-or-later"
+depends="bash"
+makedepends="ncurses-dev automake autoconf libtool"
subpackages="$pkgname-doc"
-source="$pkgname-$_sha.tar.gz::https://github.com/sigpipe/urlview/archive/08767aa863cd27d1755ba0aff65b8cc1a0c1446a.tar.gz"
-
-_builddir="$srcdir/$pkgname-$_sha"
+source="$pkgname-$_sha.tar.gz::https://github.com/sigpipe/urlview/archive/$_sha.tar.gz"
+builddir="$srcdir/$pkgname-$_sha"
prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
+ autoreconf -fi
}
build() {
- cd "$_builddir"
- aclocal
- automake --foreign --ignore-deps --add-missing
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -40,24 +31,22 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- cd "$_builddir"
- mkdir -p "${pkgdir}"/etc/urlview \
- "${pkgdir}"/usr/share/man/man1 \
- "${pkgdir}"/usr/bin
- make prefix="${pkgdir}"/usr \
- mandir="${pkgdir}"/usr/share/man install || return 1
+ mkdir -p "$pkgdir"/etc/urlview \
+ "$pkgdir"/usr/share/man/man1 \
+ "$pkgdir"/usr/bin
+ make prefix="$pkgdir"/usr \
+ mandir="$pkgdir"/usr/share/man install
install -Dm755 url_handler.sh \
- "${pkgdir}"/etc/urlview/url_handler.sh || return 1
+ "$pkgdir"/etc/urlview/url_handler.sh
install -Dm644 sample.urlview \
- "${pkgdir}"/etc/urlview/system.urlview
- ln -fs /etc/urlview/url_handler.sh \
- "${pkgdir}"/usr/bin/url_handler.sh || return 1
+ "$pkgdir"/etc/urlview/system.urlview
+ ln -fs /etc/urlview/url_handler.sh \
+ "$pkgdir"/usr/bin/url_handler.sh
}
sha512sums="0fe27ec22e591a25b57150abe1e7181d8472e17e0305beda7fbf355dc6f80799193f7859ce5f18155adb3ee7f01657bbb8d4c307770b8a3d2fc4bc5b937646d6 urlview-08767aa863cd27d1755ba0aff65b8cc1a0c1446a.tar.gz"