Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0FDE6782BAD for ; Thu, 15 Oct 2020 01:24:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A968F51C76; Thu, 15 Oct 2020 03:24:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qs3jpY7Cqy8n; Thu, 15 Oct 2020 03:24:56 +0200 (CEST) From: Al-Hassan Abdel-Raouf DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1602725096; bh=ePJd7dZIONimCXtgrQtnyLeSuA4wHrVj/4QNVarNKQs=; h=From:To:Cc:Subject:Date; b=LKZ0ADC65jHMkeDORkuky6F0RVsY/GsQQT2cn0JoMIn8ZcWHsUksjlpBjZfASLctR Lars13HR9Q2uM93TwzjdI+st4CJIxKqulngNfrqCPVgq0/Rw/2ho5kwsDeYwUYWzeK Xe9fKl5n/8AqfYtbcUE8EUVvg6eCLLiVrnHWsc61mo2tNB+aHQAxXhelb1mWUpKWZp QTsemodjdaSOirzTr9TgP/uepZShB2f9gpzHNXi7HtkIe5ZmFgi4nQHLotlB5Re37X HwCuYJWhBVL1PjxQxQeYsfOyV1EiP2rn5PIH0/WERsW0jkOWGR7Xgaa13FqNIYkYgs iTybjobVUCtDQ== To: alpine-aports@lists.alpinelinux.org Cc: Al-Hassan Abdel-Raouf Subject: [PATCH v3] testing/tre: new aport Date: Thu, 15 Oct 2020 03:22:44 +0200 Message-Id: <20201015012243.11289-1-alhassanaraouf@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit https://laurikari.net/tre POSIX compliant regexp matching library. Includes agrep for approximate grepping. --- fixed problem mentioned in pervious patch, Thanks for you help and if anything could be better tell me testing/tre/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 testing/tre/APKBUILD diff --git a/testing/tre/APKBUILD b/testing/tre/APKBUILD new file mode 100644 index 0000000000..b5b9ed559d --- /dev/null +++ b/testing/tre/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Al-Hassan Abdel-Raouf +# Maintainer: Al-Hassan Abdel-Raouf +pkgname=tre +pkgver=0.8.0 +pkgrel=0 +pkgdesc="POSIX compliant regexp matching library. Includes agrep for approximate grepping." +url="https://laurikari.net/tre" +arch="all" +license="BSD-2-Clause" +subpackages="$pkgname-static $pkgname-doc $pkgname-dev" +source="https://laurikari.net/tre/tre-$pkgver.tar.bz2" + + +prepare() { + default_prepare + update_config_sub +} + + + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-static + make +} + + + +package() { + make DESTDIR="$pkgdir" install +} + +static() { + pkgdesc="$pkgdesc (static library)" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib +} + + +sha512sums="db7465993e0d25eee8e52f974427b8a040234cf0f017769eb94ee88bc6261821336aad7f762bfa82db7e2212d8449bc221592586f061c528a59a550773cbc263 tre-0.8.0.tar.bz2" -- 2.28.0