uhubctl: update to 2.1.0.

This commit is contained in:
Anthony Iliopoulos 2019-11-13 16:58:28 +01:00 committed by Helmut Pozimski
parent 30dc00fdd6
commit 30b80510de
2 changed files with 11 additions and 9 deletions

View file

@ -1,6 +1,8 @@
diff --git Makefile Makefile
index f6d69d3..58a9d98 100644
--- Makefile
+++ Makefile
@@ -4,7 +4,7 @@
@@ -4,7 +4,7 @@ UNAME_S := $(shell uname -s)
DESTDIR ?=
prefix ?= /usr
@ -9,12 +11,12 @@
INSTALL := install
INSTALL_DIR := $(INSTALL) -m 755 -d
@@ -14,7 +14,7 @@
@@ -14,7 +14,7 @@ RM := rm -rf
CC ?= gcc
CFLAGS ?= -g -O0
CFLAGS += -Wall -Wextra -std=c99 -pedantic
-GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
-GIT_VERSION := $(shell git describe --abbrev=8 --dirty --always --tags)
+GIT_VERSION := $(shell basename "$(CURDIR)" | cut -d '-' -f 2)
CFLAGS += -DPROGRAM_VERSION=\"$(GIT_VERSION)\"
ifeq ($(UNAME_S),Linux)
ifeq ($(GIT_VERSION),)
GIT_VERSION := $(shell cat VERSION)
endif

View file

@ -1,13 +1,13 @@
# Template file for 'uhubctl'
pkgname=uhubctl
version=2.0.0
version=2.1.0
revision=1
build_style=gnu-makefile
make_use_env=yes
makedepends="libusb-devel"
short_desc="USB hub per-port power control"
maintainer="Pavel Fatin <mail@pavelfatin.com>"
license="GPL-2"
license="GPL-2.0-only"
homepage="https://github.com/mvp/uhubctl"
distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz"
checksum=4c31278b2c03e5be5a696c3088bc86cf2557a70e00f697799c163aba18e3c40e
checksum=227fdd541067b84eaa0e15cdc171458a56de7591f7a1deaff3e6d42d2809450b