~alpine/aports

testing/tre: new aport v3 APPLIED

Al-Hassan Abdel-Raouf: 1
 testing/tre: new aport

 1 files changed, 44 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3367/mbox | git am -3
Learn more about email & git

[PATCH v3] testing/tre: new aport Export this patch

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 <alhassanaraouf@disroot.org>
# Maintainer: Al-Hassan Abdel-Raouf <alhassanaraouf@disroot.org>
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