summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85d4534c8894b8f67417dd54f5b9a308f1f0c6eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: dawfukfr <dawfukfr@gmail.com>
# Contributor: Caleb Maclennan <caleb@alerque.com>

_pkgname="aquamarine"
pkgname="${_pkgname}-git"
pkgver=0.4.1_r220.gb82fdaf
pkgrel=2
pkgdesc='a very light linux rendering backend library'
arch=(x86_64)
url="https://github.com/hyprwm/$_pkgname"
license=(BSD-3-Clause)
depends=(gcc-libs
         glibc
         hyprutils-git
         hyprwayland-scanner-git
         libdisplay-info
         libdrm
         libglvnd
         libinput
         mesa
         opengl-driver
         pixman
         pugixml
         seatd
         systemd-libs
         wayland
         wayland-protocols)
makedepends=('git' 'cmake' 'gcc')
conflicts=($_pkgname)
provides=($_pkgname)
source=("${_pkgname}::git+https://github.com/hyprwm/aquamarine.git")
sha256sums=('SKIP')

pkgver() {
  cd ${_pkgname}
  _ver="$(cat VERSION)"
  echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"
	cmake -B build \
		-D CMAKE_INSTALL_PREFIX=/usr \
		-D CMAKE_BUILD_TYPE=Release
	cmake --build build
}

package() {
	cd "$_pkgname"
	DESTDIR="$pkgdir" cmake --install build
	install -Dm0644 -t "$pkgdir/usr/share/licenses/$_pkgname" LICENSE
}