summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a0f0bfeb70567b5c25beeb4f4ae3aad72a419fb (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
# Maintainer: Chuan Liu <liuchuan@liuchuan.org>

pkgbase=libexplain
pkgname='libexplain'
pkgdesc='A library to explain system call errors'
pkgver='1.4.D001'
pkgrel=10
arch=('i686' 'x86_64')
url="http://libexplain.sourceforge.net/"
license=('LGPLv2')
makedepends=('libcap' 'lsof' 'libtool' 'groff' 'bison' 'gcc' 'quilt')
source=("git+https://salsa.debian.org/debian/libexplain#tag=debian/${pkgver}-${pkgrel}")
options=(libtool staticlibs)
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/$pkgname"
  QUILT_PATCHES=debian/patches quilt push -a
}

build() {
  cd "$srcdir/$pkgname"
  CPPFLAGS='-fPIC' ./configure --prefix=/usr
  make -j$(nproc)
}

package() {
  cd "$srcdir/$pkgname"
  make install DESTDIR="$pkgdir/"
}

# vim:set ts=2 sw=2 et: