blob: de331aebaf39fe2f15472b39739aad8176bdfcd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Wagner <a.wagner@stud.uni-frankfurt.de>
pkgname=lockdev
pkgver=1.0.3_1.2
pkgrel=1
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}_1.0.3.orig.tar.gz"
"http://ftp.debian.org/debian/pool/main/l/$pkgname/${pkgname}_${pkgver/_/-}.diff.gz")
md5sums=('64b9c1b87b125fc348e892e24625524a'
'afe2995ad3fc6551e107364d66a8e938')
build() {
cd $startdir/src/$pkgname-1.0.3
patch -p1 < ../${pkgname}_${pkgver/_/-}.diff || return 1
sed -i "s|CFLAGS = -g|CFLAGS = -g -fPIC|" Makefile
make shared || return 1
make static || return 1
make basedir=$startdir/pkg/usr install
}
|