summaryrefslogtreecommitdiff
path: root/community/liblockfile/PKGBUILD
blob: 2aaf6e9879f04d12b3c88327780a699c5872e913 (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
# $Id: PKGBUILD 100202 2013-11-01 21:13:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>

pkgname=liblockfile
pkgver=1.08_4
_basever=1.08
pkgrel=3
pkgdesc="a library with NFS-safe locking functions"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://packages.debian.org/unstable/libs/liblockfile1"
depends=('glibc')
makedepends=()
source=(http://ftp.debian.org/debian/pool/main/libl/$pkgname/${pkgname}_${_basever}.orig.tar.gz
	http://ftp.debian.org/debian/pool/main/libl/$pkgname/${pkgname}_${pkgver/_/-}.debian.tar.bz2)
md5sums=('c24e2dfb4a2aab0263fe5ac1564d305e'
         '50c0c049d2838704f5720f5fd9eaddac')

build() {
  cd $srcdir/$pkgname-${_basever}
  for p in `cat ../debian/patches/series` ; do
    patch -p1 < ../debian/patches/$p
  done
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd $srcdir/$pkgname-${_basever}
  mkdir -p $pkgdir/usr/{lib,bin,include,share/man/man1,share/man/man3}
  make install prefix=$pkgdir/usr mandir=$pkgdir/usr/share/man
}