New package: uhubctl-2.0.0

This commit is contained in:
Pavel Fatin 2019-08-11 14:55:02 +00:00 committed by Juan RP
parent 245899b4a6
commit 17b57b0be0
2 changed files with 33 additions and 0 deletions

View file

@ -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)

13
srcpkgs/uhubctl/template Normal file
View file

@ -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 <mail@pavelfatin.com>"
license="GPL-2"
homepage="https://github.com/mvp/uhubctl"
distfiles="https://github.com/mvp/uhubctl/archive/v${version}.tar.gz"
checksum=4c31278b2c03e5be5a696c3088bc86cf2557a70e00f697799c163aba18e3c40e