summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1537f1a7ee69603ca1f30befac4cce3132749137 (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
# Maintainer: f (bubbles@263.nu)

pkgname=bubbles-git
pkgver=gitrev
pkgrel=2
pkgdesc="bubbles is opinionated, tiny, bloat-less, floating window manager for X."
arch=('i686' 'x86_64')
url="https://gitlab.com/twosixthree/bubbles/-/blob/main/README.md"
license=('GPL')
depends=('libx11' 'libxft')
optdepends=('libxrandr' 'libxfixes')
makedepends=('git')
provides=("${pkgname%-*}")
source=('git+https://gitlab.com/twosixthree/bubbles')
md5sums=('SKIP')

pkgver() {
  # Get the tag of the latest commit
  cd ${pkgname%-*}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${pkgname%-*}
  make
}

package() {
  cd ${pkgname%-*}
  make DESTDIR="$pkgdir" PREFIX="/usr" install
}