diff --git a/srcpkgs/uhubctl/patches/Makefile.patch b/srcpkgs/uhubctl/patches/Makefile.patch new file mode 100644 index 00000000000..addd0da74ac --- /dev/null +++ b/srcpkgs/uhubctl/patches/Makefile.patch @@ -0,0 +1,20 @@ +--- Makefile ++++ Makefile +@@ -4,7 +4,7 @@ + + DESTDIR ?= + prefix ?= /usr +-sbindir ?= $(prefix)/sbin ++sbindir ?= $(prefix)/bin + + INSTALL := install + INSTALL_DIR := $(INSTALL) -m 755 -d +@@ -14,7 +14,7 @@ + CC ?= gcc + CFLAGS ?= -g -O0 + CFLAGS += -Wall -Wextra -std=c99 -pedantic +-GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags) ++GIT_VERSION := $(shell basename "$(CURDIR)" | cut -d '-' -f 2) + CFLAGS += -DPROGRAM_VERSION=\"$(GIT_VERSION)\" + + ifeq ($(UNAME_S),Linux) diff --git a/srcpkgs/uhubctl/template b/srcpkgs/uhubctl/template new file mode 100644 index 00000000000..ac51814a6b3 --- /dev/null +++ b/srcpkgs/uhubctl/template @@ -0,0 +1,13 @@ +# Template file for 'uhubctl' +pkgname=uhubctl +version=2.0.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 " +license="GPL-2" +homepage="https://github.com/mvp/uhubctl" +distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz" +checksum=4c31278b2c03e5be5a696c3088bc86cf2557a70e00f697799c163aba18e3c40e