updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / moira / PKGBUILD
blob32fdf6cac27d0e1f96ef56085efc5ddb87f973c7
1 # Maintainer: Steven Allen <steven@stebalien.com>
2 pkgbase='moira'
3 pkgname=$pkgbase
4 true && pkgname=('moira-clients' 'libmoira')
5 _srcpkgname='debathena-moira'
6 pkgver=4.0.0_r4048
7 _srcpkgver=4.0.0-r4048
8 pkgrel=1
9 url="http://debathena.mit.edu/"
10 arch=('x86_64' 'i686')
11 license=('custom')
12 groups=('athena')
13 depends=('krb5' 'ncurses' 'termcap' 'libmoira')
14 options=('!buildflags')
15 pkgdesc="Athena Service Management system"
16 makedepends=()
17 source=("http://debathena.mit.edu/apt/pool/debathena/d/${_srcpkgname}/${_srcpkgname}_${_srcpkgver}.orig.tar.gz")
18 md5sums=('6214e57ae21064dfb78856dfd90a3704')
20 build() {
21   cd "$srcdir/$_srcpkgname-$_srcpkgver"
22   unset LDFLAGS CXXFLAGS CFLAGS
23   (
24     cd 'util/et'
25     ./configure
26     make
27   )
29   ./configure --sysconfdir=/etc --prefix=/usr
31   (
32     cd lib
33     make LDFLAGS="-fPIC"
34   )
35   (
36     cd clients
37     make LDFLAGS="-lkrb5"
38   )
41 package_libmoira() {
42   depends=('ncurses' 'e2fsprogs')
43   true && pkgdesc="Athena Service Management system (libraries)."
45   cd "$srcdir/$_srcpkgname-$_srcpkgver/lib"
46   install -d -m755 "$pkgdir/usr/lib/"
47   make DESTDIR="$pkgdir" install
48   rm -r "$pkgdir"/usr/lib/*.la
49   install -D -m644 "../include/mit-copyright.h" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
51 package_moira-clients() {
52   depends=('krb5' 'ncurses' 'termcap' 'libmoira')
53   true && pkgdesc="Athena Service Management system (clients)."
55   cd "$srcdir/$_srcpkgname-$_srcpkgver/clients"
56   
57   install -d -m755 "$pkgdir/usr/bin/" "$pkgdir/usr/lib/"
58   make DESTDIR="$pkgdir" install
59   rm -r "$pkgdir"/usr/lib/*.la
60   mv "$pkgdir"/usr/bin/{chfn,moira-chfn}
61   mv "$pkgdir"/usr/bin/{chsh,moira-chsh}
62   install -D -m644 "../include/mit-copyright.h" "$pkgdir/usr/share/licenses/$_srcpkgname/LICENSE"
65 # vim:set ts=2 sw=2 et: