Received: from sebsite.pw (sebsite.pw [71.19.150.50]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id CB00D780DE9 for <~alpine/aports@lists.alpinelinux.org>; Sun, 13 Feb 2022 00:03:06 +0000 (UTC) Received: from localhost.localdomain (unknown [8.9.88.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by sebsite.pw (Postfix) with ESMTPSA id 3A70F3800E5; Sat, 12 Feb 2022 23:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sebsite.pw; s=sebsite; t=1644709953; bh=/gMMQwRDqZ99vkwJ1CiS1mGuHqOVfiDZnIz79sY+gdI=; h=From:To:Cc:Subject:Date; b=Saz4tmRHOLjk0gIDAeX46KrjSaQa2gNurciUGu5PjBrZGaQBhyhx55aw97DoXh4hr osZSbSoY49GXQ9ZAwI7CAiq3Ofk1m7WDgg0ZIxNMud9iiLbHOzTffV4aUji58qRNzs W5uJDYT92SuMTmF7k+ZF+gheK20ZodmQZpDk16nCOlTdCzDlJ87/Z+EVlsX41TSLWG wyTXDHptey5XPlbJTdnB+cBApLfMkM2lHSLRFFeSIVW2q2ArYH9SJxUqM937IFSUBn RQ2/HVUlvJ6Nka+td6qhJKyCZka7gchxO8M2oUiJcPPL+E4N3XrnFmyt80NnUbzTLE o/lk7tlRUxNYw== From: Sebastian To: ~alpine/aports@lists.alpinelinux.org Cc: Sebastian Subject: [PATCH] testing/bestline: new aport Date: Sat, 12 Feb 2022 18:51:47 -0500 Message-Id: <20220212235147.6661-1-sebastian@sebsite.pw> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit https://github.com/jart/bestline Minimal replacement for readline Signed-off-by: Sebastian --- testing/bestline/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 testing/bestline/APKBUILD diff --git a/testing/bestline/APKBUILD b/testing/bestline/APKBUILD new file mode 100644 index 00000000..344e1853 --- /dev/null +++ b/testing/bestline/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Sebastian Hudak +# Maintainer: Sebastian Hudak +pkgname=bestline +# No official release tagged yet; not ready to be moved out of testing. +pkgver=0.0_git20211108 +_commit=8ab535e621b3848f8491469c2083c7ecb0df3e22 +pkgrel=0 +pkgdesc="Minimal replacement for readline" +url="https://github.com/jart/bestline" +arch="all" +license="BSD-2-Clause" +subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc" +source="https://github.com/jart/bestline/archive/$_commit.tar.gz" +builddir="$srcdir/$pkgname-$_commit" +options="!check" # No test suite + +build() { + # Makefile doesn't use -fPIC, which is needed for shared library + ${CC:-gcc} $CFLAGS -fPIC -c -o bestline.o bestline.c + ${CC:-gcc} $LDFLAGS -shared -o libbestline.so bestline.o +} + +package() { + install -Dm644 bestline.o "$pkgdir"/usr/lib/bestline.o + install -Dm755 libbestline.so "$pkgdir"/usr/lib/libbestline.so + install -Dm644 bestline.h "$pkgdir"/usr/include/bestline.h + install -Dm644 README.md "$pkgdir"/usr/share/doc/bestline/README.md + install -m644 bestline.gif "$pkgdir"/usr/share/doc/bestline/bestline.gif +} + +sha512sums="cd7411604c47a6910188394343b0388a0e580de891d332f4eea89f308888dfce5348fc94e826cb6cf960896ebf6272280cca90caca4537ca54e8719df61ec57b 8ab535e621b3848f8491469c2083c7ecb0df3e22.tar.gz" -- 2.34.1