summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40c04af012a0abb858dade583ba8fb26bab7511a (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
# Contributor: Camille <onodera@rizon>
# Contributor: Alad <alad@archlinux.info>
# Contributor: aksr <aksr at t-com dot me>
# Maintainer: Ferdi265 <theferdi265@gmail.com>
pkgname=libwm-git
pkgver=1.3.r0.g9b2e6a1
pkgrel=1
pkgdesc="A library for X windows manipulation."
url="https://github.com/wmutils/libwm"
arch=('i686' 'x86_64')
license=('ISC')
depends=('libxcb' 'xcb-util-wm' 'xcb-util-cursor')
provides=('libwm')
conflicts=('libwm')
makedepends=('git')
source=("$pkgname::git+https://github.com/wmutils/libwm.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags --abbrev=7 | sed -r 's/^v//g;s/([^-]*-g)/r\1/;s/-/./g'
}

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

package() {
  prefix="/usr"
  manprefix="$prefix/share/man"
  licenseprefix="/usr"
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" PREFIX="$prefix" MANPREFIX="$manprefix" install
  install -Dm644 LICENSE $pkgdir/$licenseprefix/share/licenses/$pkgname/LICENSE
}