# $Id: PKGBUILD 57817 2011-11-03 10:01:23Z lfleischer $ # Maintainer: Lukas Fleischer # Contributor: Sergej Pupykin # Contributor: Andreas Wagner pkgname=lockdev pkgver=1.0.3_1.2 _pkgver=1.0.3 pkgrel=3 pkgdesc='Run-time shared library for locking devices, using _both_ FSSTND and SVr4 methods.' url='http://packages.qa.debian.org/l/lockdev.html' license=("GPL") arch=('i686' 'x86_64') source=("http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${_pkgver}.orig.tar.gz" "http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver/_/-}.diff.gz") md5sums=('64b9c1b87b125fc348e892e24625524a' 'afe2995ad3fc6551e107364d66a8e938') build() { cd "${pkgname}-${_pkgver}" patch -p1 -i "../${pkgname}_${pkgver/_/-}.diff" sed -i "s|CFLAGS = -g|CFLAGS = -g -fPIC|" Makefile make shared make static } package() { cd "${pkgname}-${_pkgver}" make basedir="${pkgdir}/usr" install }