mirror of
https://github.com/hyprwm/aur.git
synced 2025-05-13 05:20:35 +01:00
Create PKGBUILD-hyprpaper-git
This commit is contained in:
parent
d8ab084f21
commit
671aaf90d9
1 changed files with 44 additions and 0 deletions
44
PKGBUILD-hyprpaper-git
Normal file
44
PKGBUILD-hyprpaper-git
Normal 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}"
|
||||||
|
}
|
Loading…
Reference in a new issue