Patches for aports can be sent to this list

1

[alpine-aports] [PATCH] community/gucharmap: upgrade to 11.0.3, modernize

Paul Bredbury
Details
Message ID
<20190324200547.20684-1-brebs@sent.com>
Sender timestamp
1553457947
DKIM signature
missing
Download raw message
Patch: +9 -15
---
 community/gucharmap/APKBUILD | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/community/gucharmap/APKBUILD b/community/gucharmap/APKBUILD
index 7a29c3b8b5..9981fca223 100644
--- a/community/gucharmap/APKBUILD
+++ b/community/gucharmap/APKBUILD
@@ -1,26 +1,22 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=gucharmap
-pkgver=3.18.2
+pkgver=11.0.3
 pkgrel=0
 pkgdesc="the GNOME Character Map, based on the Unicode Character Database"
-url="http://live.gnome.org/Gucharmap"
+url="https://wiki.gnome.org/Apps/Gucharmap"
 arch="all"
 license="GPL"
-depends=
+depends="unicode-character-database"
 makedepends="libxml2-utils gtk+3.0-dev itstool desktop-file-utils gobject-introspection-dev
 	appstream-glib intltool"
 install=
 subpackages="$pkgname-dev $pkgname-lang"
 source="https://download.gnome.org/sources/gucharmap/${pkgver%.*}/gucharmap-$pkgver.tar.xz"
 
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
-	cd "$_builddir"
-}
+builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
-	cd "$_builddir"
+	cd "$builddir"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
@@ -28,15 +24,13 @@ build() {
 		--sysconfdir=/etc \
 		--mandir=/usr/share/man \
 		--infodir=/usr/share/info \
-		|| return 1
-	make || return 1
+		--with-unicode-data=/usr/share/unicode
+	make
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make DESTDIR="$pkgdir" install
 }
 
-md5sums="79670f9b8c9a4888f4ea439fd2e8c589  gucharmap-3.18.2.tar.xz"
-sha256sums="80141d3e892c3c4812c1a8fad8f89978559ef19e933843267e6e9a5524c09ec9  gucharmap-3.18.2.tar.xz"
-sha512sums="d12eefb56272192762086271aa65bfa8b9a8843ac68a6affa1af3d2c891227b0fdae1c274976ceb883ecce26b7d9a2b28c2712155650c0969d6da77b1ff482b5  gucharmap-3.18.2.tar.xz"
+sha512sums="281749d3fbea937ff6ce958a7216ead03fdf19cb303aef528a1456c5ab90be977f704ff65b2e665cbad58d2c14db51b0ad144fc6961aadbb7d95ec288d79402c  gucharmap-11.0.3.tar.xz"
-- 
2.21.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Leonardo
Details
Message ID
<9b458e7b-0924-57ce-0fa9-a049229c7133@gmail.com>
In-Reply-To
<20190324200547.20684-1-brebs@sent.com> (view parent)
Sender timestamp
1554299364
DKIM signature
missing
Download raw message
Hi,

On 3/24/19 9:05 PM, Paul Bredbury wrote:
> ---
>   community/gucharmap/APKBUILD | 24 +++++++++---------------
>   1 file changed, 9 insertions(+), 15 deletions(-)

build fails for me with error:

In file included from gucharmap-unicode-info.c:34:
unicode-unihan.h:31:1: error: expected expression before ';' token

Thanks!

/eo




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---