diff options
author | Sergey Kasmy | 2020-02-19 04:58:23 +0100 |
---|---|---|
committer | Sergey Kasmy | 2020-02-19 05:02:59 +0100 |
commit | 8fb15bf620937eb9cf5f9e5984d6db3fbe0a2ed6 (patch) | |
tree | 8c9f4df7897b18ff5e53971c724f85f3c1f3ad86 | |
parent | eca3d6ac3622fb6b4f87df59c9d72557f2774a18 (diff) | |
download | aur-8fb15bf620937eb9cf5f9e5984d6db3fbe0a2ed6.tar.gz |
Use $NAME or "generic" for $DIST_NAME if $PRETTY_NAME isn't available
$PRETTY_NAME isn't available in older versions of filesystem package in Arch Linux or in some Arch derivatives
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = liquidctl pkgdesc = Cross-platform tool and drivers for liquid coolers and other devices pkgver = 1.3.3 - pkgrel = 4 + pkgrel = 5 url = https://github.com/jonasmalacofilho/liquidctl arch = any license = GPL3 @@ -14,9 +14,4 @@ pkgbase = liquidctl sha256sums = d13180867e07420c5890fe1110e8f45fe343794549a9ed7d5e8e76663bc10c24 pkgname = liquidctl - depends = python - depends = python-setuptools - depends = python-pyusb - depends = python-hidapi - depends = python-docopt @@ -4,7 +4,7 @@ pkgname=liquidctl pkgver=1.3.3 -pkgrel=4 +pkgrel=5 pkgdesc="Cross-platform tool and drivers for liquid coolers and other devices" url="https://github.com/jonasmalacofilho/liquidctl" depends=('python' 'python-setuptools' 'python-pyusb' 'python-hidapi' 'python-docopt') @@ -15,7 +15,8 @@ sha256sums=('d13180867e07420c5890fe1110e8f45fe343794549a9ed7d5e8e76663bc10c24') build() { cd "${srcdir}/${pkgname}-${pkgver}" - export DIST_NAME="$(source /etc/os-release && echo $PRETTY_NAME)" + # use $NAME or "generic" if $PRETTY_NAME isn't available + export DIST_NAME="$(source /etc/os-release && if [ -n "$PRETTY_NAME" ]; then echo "$PRETTY_NAME"; elif [ -n "$NAME" ]; then echo "$NAME"; else echo "generic"; fi)" export DIST_PACKAGE="$pkgname $pkgver-$pkgrel" python setup.py build } |