Create PKGBUILD-hyprpaper-git

This commit is contained in:
Kainoa Kanter 2022-07-11 23:17:11 -07:00 committed by GitHub
parent d8ab084f21
commit 671aaf90d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

44
PKGBUILD-hyprpaper-git Normal file
View file

@ -0,0 +1,44 @@
# Maintainer: ThatOneCalculator <kainoa@t1c.dev>
_pkgname="hyprpaper"
pkgname="${_pkgname}-git"
pkgver=r24.gfe739ed
pkgrel=2
pkgdesc="A blazing fast wayland wallpaper utility with IPC controls. "
arch=(any)
url="https://github.com/hyprwm/hyppaper"
license=('BSD')
depends=(wayland)
makedepends=(
git
cmake
ninja
gcc
gdb
meson
wayland-protocols
xorgproto)
source=("${_pkgname}::git+https://github.com/hyprwm/hyprpaper.git")
conflicts=("${_pkgname}")
provides=(hyprpaper)
sha256sums=('SKIP')
options=(!makeflags !buildflags !strip)
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${_pkgname}"
make all
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 build/hyprpaper -t "${pkgdir}/usr/bin"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}