summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5deb5a59646dcb197e1b1ae416874083e7b15f82 (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
# Maintainer: Raafat Turki <raafat.turki@pm.me>

pkgname=umess-git
pkgver=0.1.r1.gc096279
pkgrel=1
pkgdesc="A simple X pop-up"
arch=('x86_64')
license=('MIT')
url="https://github.com/kompoth/micromess"
source=("${pkgname}::git+https://github.com/kompoth/micromess.git")
depends=('libx11' 'libxrandr' 'libxft')
makedepends=('git')
provides=(umess)
conflicts=(umess)
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"

  if git describe --long --tags &>/dev/null; then
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  else
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  fi
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make PREFIX="$pkgdir/usr" install
  install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}