From 6f56a13ffb2b67e8de33f17877b8476370220d11 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 29 Oct 2013 12:34:57 +0000 Subject: main/ctags: use macro --- main/ctags/APKBUILD | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/main/ctags/APKBUILD b/main/ctags/APKBUILD index efb396a9a2..b3d6fd18a9 100644 --- a/main/ctags/APKBUILD +++ b/main/ctags/APKBUILD @@ -1,31 +1,47 @@ -# Contributor: Michael Mason +# Contributor: Michael Mason +# Maintainer: Fabian Affolter pkgname=ctags pkgver=5.8 -pkgrel=2 +pkgrel=3 pkgdesc="Generator of tags for all types of C/C++ languages" url="http://ctags.sourceforge.net/" arch="all" -license="GPL" +license="GPL2" depends="" makedepends="" -install= -subpackages="" +install="" +subpackages="$pkgname-doc" source="http://prdownloads.sourceforge.net/ctags/$pkgname-$pkgver.tar.gz" -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} +build() { + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --sysconfdir=/etc \ --mandir=/usr/share/man \ + --sysconfdir=/etc \ --infodir=/usr/share/info \ || return 1 make || return 1 - - install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir" + make -j1 \ + DEST_CTAGS="$pkgdir" \ + mandir="$pkgdir"/usr/share/man \ + install || return 1 + rm -f "$pkgdir"/usr/lib/*.la } md5sums="c00f82ecdcc357434731913e5b48630d ctags-5.8.tar.gz" +sha256sums="0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99c7 ctags-5.8.tar.gz" +sha512sums="981912cd335978cde22864e977947fc75326572fb29518e559cc4a8ac1edc84b3604165218a666e36353f17da4f89f8e967acdb88696f816748eb946d79eaa15 ctags-5.8.tar.gz" -- cgit v1.2.3