aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoc
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-09-06 10:16:33 -0300
committerTimo Teräs <timo.teras@iki.fi>2017-09-06 13:21:28 +0000
commit05436bc547672d733ddef36dffde7a0e3acbd3fd (patch)
treebef8dd1e072004aad3a6edcdf2e548244f4e86d2 /main/asciidoc
parenta72805452ffd9ed84330299917f098ea69e70ef0 (diff)
downloadaports-05436bc547672d733ddef36dffde7a0e3acbd3fd.tar.bz2
aports-05436bc547672d733ddef36dffde7a0e3acbd3fd.tar.xz
main/asciidoc: update url and modernize
Diffstat (limited to 'main/asciidoc')
-rw-r--r--main/asciidoc/APKBUILD30
1 files changed, 15 insertions, 15 deletions
diff --git a/main/asciidoc/APKBUILD b/main/asciidoc/APKBUILD
index 5ed015f019..4e709c12ce 100644
--- a/main/asciidoc/APKBUILD
+++ b/main/asciidoc/APKBUILD
@@ -1,18 +1,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asciidoc
pkgver=8.6.9
-pkgrel=2
+pkgrel=3
pkgdesc="Text based documentation"
-url="http://www.methods.co.nz/asciidoc/"
+url="http://asciidoc.org/"
arch="noarch"
license="GPL2"
depends="python2 libxml2-utils docbook-xsl"
-makedepends=""
-install=""
+makedepends="autoconf"
subpackages="$pkgname-doc $pkgname-vim::noarch"
-source="http://sourceforge.net/projects/asciidoc/files/asciidoc/$pkgver/asciidoc-$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/asciidoc/asciidoc/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ autoconf
+}
-builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
./configure \
@@ -21,24 +25,20 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
vim() {
- depends=""
pkgdesc="Vim syntax for $pkgname"
-
+ depends=""
install -Dm644 "$builddir"/vim/syntax/$pkgname.vim \
"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}
-md5sums="c59018f105be8d022714b826b0be130a asciidoc-8.6.9.tar.gz"
-sha256sums="78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0 asciidoc-8.6.9.tar.gz"
-sha512sums="1984482010dbd35c3a1def67f4915ce83ecfc29a7463f84aa312107d7a9ff647978f57615462c65e885bea424eed89a212df728cc3acd3c63df1c763dfa5e955 asciidoc-8.6.9.tar.gz"
+sha512sums="8dc707131fc48e9dbb73c3b7da6fed6fcf239af888891d05c2d89c8c128136b8fc26d19a4342c5ed1d7bd72dc4edb505d7c543ad4696834f2f7c5c27566fc119 asciidoc-8.6.9.tar.gz"