summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea22e2389487dde5f1b8ae6e4077a2bbf35b3688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: meklu <meklu at meklu dot org>
# Contributor: Samsagax <samsagax at gmail dot com>
# Contributor: Swift Geek <swiftgeek+spam@gmail.com>

pkgname=entrance-svn
pkgver=74295
pkgrel=1
pkgdesc="Successor of the e17 display manager - Entrance"
url="http://trac.enlightenment.org/e"
license=("GPL")
arch=("i686" "x86_64")
provides=('entrance')
conflicts=('elsa')
depends=('elementary')
makedepends=('subversion')
source=('entrance-pam'
	'entrance.service')
md5sums=('9a76cae5b3a0fcbb6116fa08c7a587b5'
	 'a10831272be5d65d40d9f7b5b03361b1')

_svntrunk="http://svn.enlightenment.org/svn/e/trunk/PROTO/entrance/"
_svnmod="entrance"

build ()
{
	cd $srcdir

	msg "Connecting to $_svntrunk SVN server...."
	if [ -d $_svnmod/.svn ]; then
		(cd $_svnmod && svn up -r $pkgver)
	else
		svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
	fi

	msg "SVN checkout done or server timeout"
	msg "Starting make..."

	rm -rf $_svnmod-build
	cp -r $_svnmod $_svnmod-build
	cd $_svnmod-build
	
    ./autogen.sh \
        --prefix=/usr \
        --sysconfdir=/etc
	
    make

}

package() {
    cd $srcdir/$_svnmod-build

    make DESTDIR=$pkgdir install

    # install license files
    install -Dm644 $srcdir/$_svnmod-build/COPYING \
        $pkgdir/usr/share/licenses/$pkgname/COPYING

    # install pam file
    install -Dm644 $srcdir/entrance-pam \
        $pkgdir/etc/pam.d/entrance

    # install systemd files
    install -Dm644 $srcdir/entrance.service \
        $pkgdir/usr/lib/systemd/system/entrance.service
}