diff options
author | git user | 2023-09-04 11:28:00 +0200 |
---|---|---|
committer | git user | 2023-09-04 11:28:00 +0200 |
commit | 0936fae490348e42f37396a5730e6ec8b5506e7d (patch) | |
tree | 4133d1481e324587e09953c8c256cda711c0f175 | |
parent | 08b9cd4730fb455377ec0594f2460582cf27ea2b (diff) | |
download | aur-0936fae490348e42f37396a5730e6ec8b5506e7d.tar.gz |
Added configuration framework to switch between upstream and CachyOS variant.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 34 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = uksmd-nosystemd-git pkgdesc = Userspace KSM helper daemon. Without systemd dependency, latest git checkout. pkgver = 6.4.1.r67.20230707.b698d76 - pkgrel = 1 + pkgrel = 2 url = https://codeberg.org/pf-kernel/uksmd arch = x86_64 license = GPL3 @@ -1,15 +1,29 @@ # Maintainer: dreieck -# Based on aur/uksmd-git bv -# Contributor: Yurii Kolesnykov <root@yurikoles.com> -# Based on aur/uksmd by -# Oleksandr Natalenko <oleksandr@natalenko.name> +# Based on aur/uksmd-git by +# Contributor: Yurii Kolesnykov <root@yurikoles.com> +# Based on aur/uksmd by +# Oleksandr Natalenko <oleksandr@natalenko.name> + +_PKGSOURCE=upstream +# _PKGSOURCE=CachyOS _pkgname=uksmd pkgname="${_pkgname}-nosystemd-git" pkgver=6.4.1.r67.20230707.b698d76 -pkgrel=1 +pkgrel=2 pkgdesc="Userspace KSM helper daemon. Without systemd dependency, latest git checkout." -url=https://codeberg.org/pf-kernel/uksmd +case "${_PKGSOURCE}" in + 'upstream') + url=https://codeberg.org/pf-kernel/uksmd + ;; + 'CachyOS') + url=https://github.com/CachyOS/uksmd + ;; + *) + error "_PKGSOURCE=${_PKGSOURCE} is not supported. Please fix the PKGBUILD." + exit 1 + ;; +esac license=(GPL3) arch=(x86_64) depends=( @@ -29,6 +43,19 @@ provides=( "${_pkgname}-nosystemd=${pkgver}" "${_pkgname}-git=${pkgver}" ) +case "${_PKGSOURCE}" in + 'upstream') + true + ;; + 'CachyOS') + provides+=("ukdmdstats=${pkgver}") + provides+=("ukdmdstats-git=${pkgver}") + ;; + *) + error "_PKGSOURCE=${_PKGSOURCE} is not supported. Please fix the PKGBUILD." + exit 1 + ;; +esac conflicts=( "${_pkgname}" ) |