mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 22:44:04 +01:00
initial commit
This commit is contained in:
commit
3b70668815
3 changed files with 63 additions and 0 deletions
23
.SRCINFO
Normal file
23
.SRCINFO
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
pkgbase = hyprgraphics-git
|
||||
pkgdesc = Hyprland graphics / resource utilities
|
||||
pkgver = 0.0.1.r6.704fca7
|
||||
pkgrel = 1
|
||||
url = https://github.com/hyprwm/hyprgraphics
|
||||
arch = any
|
||||
license = BSD-3-Clause
|
||||
makedepends = git
|
||||
makedepends = cmake
|
||||
makedepends = gcc
|
||||
depends = pixman
|
||||
depends = cairo
|
||||
depends = hyprutils-git
|
||||
depends = libjpeg
|
||||
depends = libwebp
|
||||
depends = libjxl
|
||||
depends = file
|
||||
provides = hyprgraphics
|
||||
conflicts = hyprgraphics
|
||||
source = hyprgraphics::git+https://github.com/hyprwm/hyprgraphics.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = hyprgraphics-git
|
||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/*
|
||||
!/.gitignore
|
||||
!/.SRCINFO
|
||||
!/PKGBUILD
|
||||
36
PKGBUILD
Normal file
36
PKGBUILD
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: alba4k <blaskoazzolaaaron@gmail.com>
|
||||
|
||||
_pkgname="hyprgraphics"
|
||||
pkgname="${_pkgname}-git"
|
||||
pkgver=0.0.1.r6.704fca7
|
||||
pkgrel=1
|
||||
pkgdesc="Hyprland graphics / resource utilities"
|
||||
arch=(any)
|
||||
url="https://github.com/hyprwm/hyprgraphics"
|
||||
license=('BSD-3-Clause')
|
||||
depends=('pixman' 'cairo' 'hyprutils-git' 'libjpeg' 'libwebp' 'libjxl' 'file')
|
||||
makedepends=('git' 'cmake' 'gcc')
|
||||
source=("${_pkgname}::git+https://github.com/hyprwm/hyprgraphics.git")
|
||||
provides=("hyprgraphics")
|
||||
conflicts=("hyprgraphics")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd ${_pkgname}
|
||||
#git describe --long --tags --abbrev=8 --exclude='*[a-zA-Z][a-zA-Z]*' \
|
||||
# | sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
|
||||
printf "0.0.1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX=/usr -S . -B ./build
|
||||
cmake --build ./build --config Release --target hyprgraphics
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
DESTDIR="${pkgdir}" cmake --install build
|
||||
|
||||
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue