aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-28 01:14:39 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-03-28 01:23:13 +0200
commitbfb4387cd428b80b44b3f180d052724dc8475bfa (patch)
tree50aee5c132d0a3bd260f207a69d1da6cd1605b05
parent828306c77af878f72a1cd5afc3faa1fb371eb22c (diff)
downloadaports-bfb4387cd428b80b44b3f180d052724dc8475bfa.tar.bz2
aports-bfb4387cd428b80b44b3f180d052724dc8475bfa.tar.xz
main/libquvi-scripts: modernize abuild
-rw-r--r--main/libquvi-scripts/APKBUILD22
1 files changed, 6 insertions, 16 deletions
diff --git a/main/libquvi-scripts/APKBUILD b/main/libquvi-scripts/APKBUILD
index cf8c2baed7..0ea6f25555 100644
--- a/main/libquvi-scripts/APKBUILD
+++ b/main/libquvi-scripts/APKBUILD
@@ -7,34 +7,24 @@ pkgdesc="scripts for libquvi - the library for parsing video download links"
url="http://quvi.sourceforge.net/"
arch="noarch"
license="LGPLv2+"
-depends=
-depends_dev=""
-makedepends="$depends_dev"
-install=""
subpackages="$pkgname-dev $pkgname-doc"
-source="http://downloads.sourceforge.net/project/quvi/${pkgver%.*}/$pkgname/libquvi-scripts-$pkgver.tar.xz"
+source="http://downloads.sourceforge.net/project/quvi/${pkgver%.*}/$pkgname/$pkgname-$pkgver.tar.xz"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir"/libquvi-scripts-$pkgver
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
- update_config_guess || return 1
+ default_prepare || return 1
+ update_config_guess
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure --prefix=/usr \
|| return 1
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}