Subject: [alpine-aports] [PATCH v2] testing/gnuchess: new aport

From: Milan P. Stanić <[email-masked]>
Date: Sun, 21 Apr 2019 23:14:53 +0200

---
Changes v1 -> v2:
 - removed bash from makedepends

 testing/gnuchess/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 testing/gnuchess/APKBUILD

diff --git a/testing/gnuchess/APKBUILD b/testing/gnuchess/APKBUILD
new file mode 100644
index 0000000000..d23de9b307
--- /dev/null
+++ b/testing/gnuchess/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Milan P. Stanić <[email-masked]>
+# Maintainer: Milan P. Stanić <[email-masked]>
+pkgname=gnuchess
+pkgver=6.2.5
+pkgrel=0
+pkgdesc="GNU Chess"
+url="http://www.gnu.org/software/chess/chess.html"
+arch="all"
+license="GPL-3"
+depends=""
+makedepends="gettext-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://ftp.gnu.org/gnu/chess/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var
+	make
+}
+
+check() {
+	cd "$builddir"
+	make check
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="f3f65a85eb4c93f6f10c7058bde7ee7f4a48c2f465b24a7cc0d5bcafe4df186b434ce23bf8c032d012efffba39c6c3c60ada484ff22d87114ce2be5dd0da6835  gnuchess-6.2.5.tar.gz"
-- 
2.20.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---