diff options
author | xiota | 2024-04-17 02:06:28 +0000 |
---|---|---|
committer | xiota | 2024-04-17 02:06:28 +0000 |
commit | 0014b85a8fc44a093962e59dd6b86c1a31f5fc11 (patch) | |
tree | 97bee4733eba74708161537930d94192d52fd020 | |
parent | 1429cc5ffbf0135970f392c67fbbb7a6cf2531bc (diff) | |
download | aur-0014b85a8fc44a093962e59dd6b86c1a31f5fc11.tar.gz |
2.1.4.r94
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 29 insertions, 28 deletions
@@ -1,6 +1,6 @@ pkgbase = ddcutil-git pkgdesc = Query and change Linux monitor settings using DDC/CI and USB. - pkgver = 2.1.0.r67.g90e67d7c + pkgver = 2.1.4.r94.g1ce8d58 pkgrel = 1 url = https://github.com/rockowitz/ddcutil arch = x86_64 @@ -14,7 +14,7 @@ pkgbase = ddcutil-git depends = libdrm depends = libusb depends = libxrandr - provides = ddcutil=2.1.0 + provides = ddcutil=2.1.4 conflicts = ddcutil source = ddcutil::git+https://github.com/rockowitz/ddcutil.git sha256sums = SKIP @@ -9,15 +9,9 @@ # http://ddcutil.com/ # https://github.com/rockowitz/ddcutil -## options -: ${_build_git:=true} - -[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git" - -## basic info _pkgname="ddcutil" -pkgname="$_pkgname${_pkgtype:-}" -pkgver=2.1.0.r67.g90e67d7c +pkgname="$_pkgname-git" +pkgver=2.1.4.r94.g1ce8d58 pkgrel=1 pkgdesc='Query and change Linux monitor settings using DDC/CI and USB.' url='https://github.com/rockowitz/ddcutil' @@ -25,17 +19,17 @@ license=('GPL-2.0-or-later') arch=('x86_64') depends=( - 'glib2' - 'i2c-tools' - 'jansson' - 'kmod' - 'libdrm' - 'libusb' - 'libxrandr' + 'glib2' + 'i2c-tools' + 'jansson' + 'kmod' + 'libdrm' + 'libusb' + 'libxrandr' ) makedepends=( - 'git' - 'systemd' + 'git' + 'systemd' ) provides+=("$_pkgname=${pkgver%%.r*}") @@ -46,22 +40,29 @@ source=("$_pkgname"::"git+$url.git") sha256sums=('SKIP') pkgver() { - cd "$_pkgsrc" - git describe --long --tags --abbrev=8 --exclude='*[a-z][a-z]*' | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' + cd "$_pkgsrc" + git describe --long --tags --abbrev=7 --exclude='*[a-z][a-z]*' | + sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } prepare() { - cd "$_pkgsrc" - NOCONFIGURE=1 ./autogen.sh + cd "$_pkgsrc" + + # switch default branch, in case cache is out of date + _branch=$(git remote show origin | grep HEAD | sed 's&^.*: &&') + git checkout -f branch "$_branch" + + # back to regularly scheduled program + NOCONFIGURE=1 ./autogen.sh } build() { - cd "$_pkgsrc" - ./configure --prefix=/usr - make + cd "$_pkgsrc" + ./configure --prefix=/usr + make } package() { - cd "$_pkgsrc" - make DESTDIR="$pkgdir" install + cd "$_pkgsrc" + make DESTDIR="$pkgdir" install } |