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 /PKGBUILD | |
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
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } |