summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ac488f8d2759bae2913bff830340c58300f8017 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libbsd-git
pkgver=0.8.6.r0.gbbf90ac
pkgrel=1
pkgdesc="Provides useful functions commonly found on BSD systems"
arch=('i686' 'x86_64')
url="https://libbsd.freedesktop.org/wiki/"
license=('BSD')
depends=('glibc')
makedepends=('git')
provides=('libbsd')
conflicts=('libbsd')
options=('staticlibs')
source=("git+https://anongit.freedesktop.org/git/libbsd.git")
sha256sums=('SKIP')


pkgver() {
  cd "libbsd"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libbsd"

  ./autogen
  ./configure --prefix="/usr"
  make
}

check() {
  cd "libbsd"

  make check
}

package() {
  cd "libbsd"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/libbsd/COPYING"
}