updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / resmgr / PKGBUILD
blob02686d84b50768a5c8643268f409be4bf5f58bec
1 # Contributor: fancris3 <fancris3 at aol.com>
2 pkgname=resmgr
3 pkgver=1.1.0
4 pkgrel=2
5 _nsvn=_SVNr123
6 pkgdesc="a resource manager for unprivileged user access to device files."
7 arch=(i686)
8 install=(resmgr.install)
9 url="http://forge.novell.com/modules/xfmod/project/?resmgr"
10 #url="http://www.lst.de/~okir/resmgr/"
11 license=('GPL2')
12 depends=('glibc')
13 makedepends=('rpmextract' 'bzip2' 'automake' 'autoconf')
14 backup=('/etc/resmgr.conf/resmgr.conf' '/etc/resmgr.conf/99-desktop.conf')
15 source=(ftp://ftp.univie.ac.at/systems/linux/suse/update/10.2/rpm/src/\
16 ${pkgname}-${pkgver}${_nsvn}-9.2.src.rpm resmgr patch.arch)
17 md5sums=('31b74ff4c73e969955c8976f1e865a7f' '838401a9c88ffcd7519f72e6806de388'\
18          '818dbc8c02874b8c4cf70fc11f5928e4')
20 build() {
22   rpmextract.sh ${pkgname}-${pkgver}${_nsvn}-9.2.src.rpm
23   bunzip2 -f ${pkgname}-${pkgver}${_nsvn}.tar.bz2
24   tar -xf ${pkgname}-${pkgver}${_nsvn}.tar
25   cd ${pkgname}-${pkgver}${_nsvn}
27   patch -Np1 -i ../patch.arch
29   ./configure --libdir=/lib \
30               --prefix=/usr \
31               --mandir=/usr/man \
32               --sysconfdir=/etc/resmgr.conf \
33               --with-pam \
34               --with-library \
36   make || return 1
38   mkdir -p $startdir/pkg/etc/rc.d
39   install -m 755 $startdir/src/${pkgname} ${startdir}/pkg/etc/rc.d/
41   make DESTDIR=$startdir/pkg install