diff options
author | Mark Wagie | 2023-06-11 13:26:28 -0600 |
---|---|---|
committer | Mark Wagie | 2023-06-11 13:26:28 -0600 |
commit | 173850ffbd94ae5f14622862eeec90f2d284ac3c (patch) | |
tree | af90be1c74db1545a9e74f68d2061546a232e329 | |
parent | ceb384ebb4fe0cb11fd41e363147627f93a0840e (diff) | |
download | aur-173850ffbd94ae5f14622862eeec90f2d284ac3c.tar.gz |
PKGBUILD improvements
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -22,7 +22,7 @@ pkgbase = clightd-git depends = wayland provides = clightd conflicts = clightd - source = clightd::git+https://github.com/FedeDP/Clightd.git + source = git+https://github.com/FedeDP/Clightd.git sha256sums = SKIP pkgname = clightd-git @@ -12,16 +12,16 @@ depends=('systemd-libs' 'linux-api-headers' 'libx11' 'libxrandr' 'libxext' 'polk makedepends=('git' 'cmake') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("${pkgname%-git}::git+https://github.com/FedeDP/Clightd.git") +source=('git+https://github.com/FedeDP/Clightd.git') sha256sums=('SKIP') pkgver() { - cd "$srcdir/${pkgname%-git}" + cd "$srcdir/Clightd" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cmake -B build -S "${pkgname%-git}" \ + cmake -B build -S Clightd \ -G "Unix Makefiles" \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ |