diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-06 19:48:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-06 19:52:55 +0000 |
commit | 52561f00548f4186a8e8837686d0fa75b84d5f36 (patch) | |
tree | c64d233a8c50ef8a2538890fc33ae845fa7d4d8d /main/xmlto | |
parent | 9ab9e997b458509001944d278ae7e81286d4cfcf (diff) | |
download | aports-52561f00548f4186a8e8837686d0fa75b84d5f36.tar.bz2 aports-52561f00548f4186a8e8837686d0fa75b84d5f36.tar.xz |
main/xmlto: fix source url and modernize
Diffstat (limited to 'main/xmlto')
-rw-r--r-- | main/xmlto/APKBUILD | 18 |
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 } |