summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--txtw/0001-Use-the-proper-type-for-the-return-value-of-getopt.patch25
-rw-r--r--txtw/APKBUILD7
2 files changed, 30 insertions, 2 deletions
diff --git a/txtw/0001-Use-the-proper-type-for-the-return-value-of-getopt.patch b/txtw/0001-Use-the-proper-type-for-the-return-value-of-getopt.patch
new file mode 100644
index 0000000..237631f
--- /dev/null
+++ b/txtw/0001-Use-the-proper-type-for-the-return-value-of-getopt.patch
@@ -0,0 +1,25 @@
+From ec95badbdf84d71045b13869bc9d1e3ad114cd92 Mon Sep 17 00:00:00 2001
+From: Bastien Dejean <nihilhill@gmail.com>
+Date: Tue, 12 Apr 2016 10:44:28 +0200
+Subject: [PATCH] Use the proper type for the return value of getopt
+
+---
+ txtw.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/txtw.c b/txtw.c
+index c6cba2d..0a53a99 100644
+--- a/txtw.c
++++ b/txtw.c
+@@ -24,7 +24,7 @@ int main(int argc, char *argv[]) {
+ int font_size = FONT_SIZE;
+ char *alt_font_family = NULL;
+ int alt_font_size = FONT_SIZE;
+- char opt;
++ int opt;
+
+ while ((opt = getopt(argc, argv, "hvf:s:F:S:")) != -1) {
+ switch (opt) {
+--
+2.42.0
+
diff --git a/txtw/APKBUILD b/txtw/APKBUILD
index 6966173..0d6658a 100644
--- a/txtw/APKBUILD
+++ b/txtw/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: John Vogel <jvogel4@stny.rr.com>
pkgname=txtw
pkgver=0.4
-pkgrel=0
+pkgrel=1
pkgdesc="Return the pixel width for the given strings for the given font"
url="https://github.com/baskerville/txtw/"
arch="all"
@@ -12,7 +12,9 @@ makedepends="cairo-dev"
options="!check"
install=""
subpackages="$pkgname-doc"
-source="https://github.com/baskerville/txtw/archive/$pkgver/txtw-$pkgver.tar.gz"
+source="https://github.com/baskerville/txtw/archive/$pkgver/txtw-$pkgver.tar.gz
+ 0001-Use-the-proper-type-for-the-return-value-of-getopt.patch
+ "
builddir="$srcdir/txtw-$pkgver"
build() {
@@ -25,4 +27,5 @@ package() {
sha512sums="
1f8aca56455172e8e03aab6bf1eccd687f3ef34fcf0b6b2e9dddd9127c946f4d837d6bca58422ff0a956ea09d19fb050ca92a1ba035ce29dc0035ee23ea85d3c txtw-0.4.tar.gz
+c0beeca33887708450b149e837d4ae68bfdafd05cbad1184baa42ff8cce655efe8d58a49ab77cfe0946d0cbe5a606b207ae8c006feb824a24e13ee5a4c519f54 0001-Use-the-proper-type-for-the-return-value-of-getopt.patch
"