2013-03-25 15:07:53 +01:00
|
|
|
# Template file for 'lockdev'
|
|
|
|
pkgname=lockdev
|
|
|
|
version=1.0.3
|
2015-03-08 12:56:26 +01:00
|
|
|
revision=4
|
2013-03-25 15:07:53 +01:00
|
|
|
short_desc="Run-time shared library for locking devices"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-03-25 15:07:53 +01:00
|
|
|
homepage="http://packages.qa.debian.org/l/lockdev.html"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
|
|
|
|
checksum=ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82
|
|
|
|
|
|
|
|
do_build() {
|
2013-05-26 11:03:20 +02:00
|
|
|
make CC=$CC shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
|
|
|
|
make CC=$CC static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
|
2013-03-25 15:07:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make basedir=${DESTDIR}/usr install
|
|
|
|
for f in so so.1; do
|
|
|
|
ln -sr ${DESTDIR}/usr/lib/liblockdev.${version}.so \
|
|
|
|
${DESTDIR}/usr/lib/liblockdev.${f}
|
|
|
|
done
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
lockdev-devel_package() {
|
2014-02-21 11:51:48 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|