aboutsummaryrefslogtreecommitdiffstats
path: root/main/xmlto
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-06 19:48:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-06 19:52:55 +0000
commit52561f00548f4186a8e8837686d0fa75b84d5f36 (patch)
treec64d233a8c50ef8a2538890fc33ae845fa7d4d8d /main/xmlto
parent9ab9e997b458509001944d278ae7e81286d4cfcf (diff)
downloadaports-52561f00548f4186a8e8837686d0fa75b84d5f36.tar.bz2
aports-52561f00548f4186a8e8837686d0fa75b84d5f36.tar.xz
main/xmlto: fix source url and modernize
Diffstat (limited to 'main/xmlto')
-rw-r--r--main/xmlto/APKBUILD18
1 files changed, 4 insertions, 14 deletions
diff --git a/main/xmlto/APKBUILD b/main/xmlto/APKBUILD
index 3c9d94067f..6a51410ec7 100644
--- a/main/xmlto/APKBUILD
+++ b/main/xmlto/APKBUILD
@@ -12,21 +12,11 @@ depends_dev=
makedepends="$depends_dev bash"
install=""
subpackages="$pkgname-doc"
-source="https://fedorahosted.org/releases/x/m/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
-_builddir="$srcdir/$pkgname-$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
-}
+source="https://releases.pagure.org/xmlto/xmlto-$pkgver.tar.bz2"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -37,7 +27,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
}