sutils: add patch for architectures with unsigned char and fix license
This commit is contained in:
parent
000bd67549
commit
f8065607ee
2 changed files with 94 additions and 2 deletions
92
srcpkgs/sutils/patches/getopt-unsigned-char.patch
Normal file
92
srcpkgs/sutils/patches/getopt-unsigned-char.patch
Normal file
|
@ -0,0 +1,92 @@
|
|||
From f35ea442858c362703d2fccb66a94b99f812f8a7 Mon Sep 17 00:00:00 2001
|
||||
From: TomFrost <tom@frosteddesign.com>
|
||||
Date: Mon, 11 Apr 2016 21:50:02 -0400
|
||||
Subject: [PATCH] Change opt char to int for armv7 compatability
|
||||
|
||||
---
|
||||
battery.c | 2 +-
|
||||
clock.c | 2 +-
|
||||
essid.c | 2 +-
|
||||
exist.c | 2 +-
|
||||
temp.c | 2 +-
|
||||
volume.c | 2 +-
|
||||
6 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/battery.c b/battery.c
|
||||
index 5cc45b4..20307e5 100644
|
||||
--- battery.c
|
||||
+++ battery.c
|
||||
@@ -63,7 +63,7 @@ int main(int argc, char *argv[])
|
||||
int interval = INTERVAL;
|
||||
bool snoop = false;
|
||||
|
||||
- char opt;
|
||||
+ int opt;
|
||||
while ((opt = getopt(argc, argv, "hsf:i:p:n:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'h':
|
||||
diff --git a/clock.c b/clock.c
|
||||
index 0847787..e2c0530 100644
|
||||
--- clock.c
|
||||
+++ clock.c
|
||||
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
|
||||
int interval = INTERVAL;
|
||||
bool snoop = false;
|
||||
|
||||
- char opt;
|
||||
+ int opt;
|
||||
while ((opt = getopt(argc, argv, "hsf:i:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'h':
|
||||
diff --git a/essid.c b/essid.c
|
||||
index 2143556..4a768f0 100644
|
||||
--- essid.c
|
||||
+++ essid.c
|
||||
@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
|
||||
char *interface = INTERFACE;
|
||||
bool snoop = false;
|
||||
|
||||
- char opt;
|
||||
+ int opt;
|
||||
while ((opt = getopt(argc, argv, "hsf:i:w:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'h':
|
||||
diff --git a/exist.c b/exist.c
|
||||
index 27fdfca..3de5eb8 100644
|
||||
--- exist.c
|
||||
+++ exist.c
|
||||
@@ -14,7 +14,7 @@ void check_file(char *pth, bool inv) {
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
- char opt;
|
||||
+ int opt;
|
||||
bool invert_matches = false;
|
||||
|
||||
while ((opt = getopt(argc, argv, "hv")) != -1) {
|
||||
diff --git a/temp.c b/temp.c
|
||||
index 98ab33e..e93bc74 100644
|
||||
--- temp.c
|
||||
+++ temp.c
|
||||
@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
|
||||
int interval = INTERVAL;
|
||||
bool snoop = false;
|
||||
|
||||
- char opt;
|
||||
+ int opt;
|
||||
while ((opt = getopt(argc, argv, "hsf:i:p:n:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'h':
|
||||
diff --git a/volume.c b/volume.c
|
||||
index 32e186a..8117279 100644
|
||||
--- volume.c
|
||||
+++ volume.c
|
||||
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
|
||||
int interval = INTERVAL;
|
||||
bool snoop = false;
|
||||
|
||||
- char opt;
|
||||
+ int opt;
|
||||
while ((opt = getopt(argc, argv, "hsf:i:d:v:m:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'h':
|
|
@ -1,12 +1,12 @@
|
|||
# Template file for 'sutils'
|
||||
pkgname=sutils
|
||||
version=0.2
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
makedepends="alsa-lib-devel"
|
||||
short_desc="Small command-line utilities"
|
||||
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
||||
license="Public Domain"
|
||||
license="Unlicense"
|
||||
homepage="https://github.com/baskerville/sutils/"
|
||||
distfiles="https://github.com/baskerville/sutils/archive/${version}.tar.gz"
|
||||
checksum=da8cccace32094430be572cf59d85256023edf9107b12c926c7beb29586c56a3
|
||||
|
|
Loading…
Reference in a new issue