sysfsutils rebuild, clean-up, move to /usr/lib

This commit is contained in:
abveritas 2012-11-13 18:07:25 +00:00
parent dabd847cf1
commit a8b83cd653

View File

@ -1,28 +1,38 @@
# $Id: PKGBUILD 38987 2009-05-11 06:21:37Z tpowa $ #
# Maintainer: Tobias Powalowski <tpowa@archlinux.org> # Core Packages for Chakra, part of chakra-project.org
#
# maintainer: abveritas@chakra-project.org
pkgname=sysfsutils pkgname=sysfsutils
pkgver=2.1.0 pkgver=2.1.0
pkgrel=6 pkgrel=7
pkgdesc="System Utilities Based on Sysfs" pkgdesc="System Utilities Based on Sysfs"
arch=(i686 x86_64) arch=('x86_64')
license=('GPL' 'LGPL') license=('GPL' 'LGPL')
url="http://linux-diag.sourceforge.net/Sysfsutils.html" url="http://linux-diag.sourceforge.net/Sysfsutils.html"
groups=('base') groups=('base')
depends=('glibc') depends=('glibc')
source=(http://downloads.sourceforge.net/sourceforge/linux-diag/$pkgname-$pkgver.tar.gz) source=("http://downloads.sourceforge.net/sourceforge/linux-diag/$pkgname-$pkgver.tar.gz")
md5sums=('14e7dcd0436d2f49aa403f67e1ef7ddc') md5sums=('14e7dcd0436d2f49aa403f67e1ef7ddc')
options=(!libtool) options=(!libtool)
build() { build() {
cd $srcdir/$pkgname-$pkgver cd "$pkgname-$pkgver"
./configure --prefix=/usr --mandir=/usr/share/man ./configure --prefix=/usr --mandir=/usr/share/man
make || return 1 make
make DESTDIR=$pkgdir install }
cd $pkgdir check() {
mkdir -v lib cd "$pkgname-$pkgver"
mv -v usr/lib/libsysfs.so.2* lib/
ln -svf ../../lib/libsysfs.so.2 usr/lib/libsysfs.so make check
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
rm "$pkgdir/usr/lib/libsysfs.a"
} }