diff options
author | ShootingStarDragons | 2023-10-16 10:26:49 +0800 |
---|---|---|
committer | ShootingStarDragons | 2023-10-16 10:38:36 +0800 |
commit | 7d08e50c845082c2ee04e47f40a3d0f22e4ad64d (patch) | |
tree | 72c242f77b29b8526567715ebad86b5bfcc27ad5 | |
download | aur-7d08e50c845082c2ee04e47f40a3d0f22e4ad64d.tar.gz |
chore: init
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6e493d4cdd21 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = waycratelock-git + pkgdesc = waycratelock, lock for ext-session-lock + pkgver = r41.bf28449 + pkgrel = 1 + url = https://github.com/waycrate/waycratelock + arch = x86_64 + arch = aarch64 + license = GPL + makedepends = git + makedepends = ninja + makedepends = cmake + makedepends = wayland-protocols + makedepends = session-lock-qt + depends = qt6-wayland + depends = qt6-base + depends = pam + source = waycratelock::git+https://github.com/waycrate/waycratelock.git + sha256sums = SKIP + +pkgname = waycratelock-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c4276c5cc2a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +_pkgname=waycratelock +pkgname=waycratelock-git +pkgver=r41.bf28449 +pkgrel=1 +pkgdesc="waycratelock, lock for ext-session-lock" +url="https://github.com/waycrate/waycratelock" +arch=('x86_64' 'aarch64') +license=('GPL') +makedepends=('git' 'ninja' 'cmake' 'wayland-protocols' 'session-lock-qt') +depends=('qt6-wayland' 'qt6-base' 'pam') +source=("${_pkgname}::git+${url}.git") +sha256sums=('SKIP') + +build() { + cd "${_pkgname}" + cmake -GNinja \ + -DCMAKE_INSTALL_PREFIX=/usr . + ninja +} + +package() { + cd "${_pkgname}" + DESTDIR="$pkgdir" ninja install +} + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} |