updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / xsel-svn / PKGBUILD
blob89116ea99c1025b0b69b5d856b160230244d16d2
1 # Contributor: Kosenko Roman <madkite@gmail.com>
2 pkgname=xsel-svn
3 pkgver=281
4 pkgrel=1
5 pkgdesc='A command-line program for getting and setting the contents of the X selection'
6 arch=('i686' 'x86_64')
7 url='http://www.vergenet.net/~conrad/software/xsel/'
8 license=('MIT')
9 depends=(libxext libsm)
10 provides=('xsel')
11 conflicts=('xsel')
12 source=(configure.ac.patch)
14 _svntrunk=http://svn.kfish.org/xsel/trunk/
15 _svnmod=xsel
17 build() {
18         cd ${srcdir}
20         msg "Connecting to $_svntrunk ..."
21         if [ -d $_svnmod/.svn ]; then
22                 (cd $_svnmod && svn up -r $pkgver) || return $?
23         else
24                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return $?
25         fi
26         msg "SVN checkout done or server timeout"
28         if [ -d ${_svnmod}-build ]; then
29                 msg "Deleting old build directory"
30                 rm -rf ${_svnmod}-build
31         fi
33         msg "Setting up build environment..."
34         cp -r ${_svnmod} ${_svnmod}-build || return $?
35         cd ${_svnmod}-build || return $?
36         patch -p0 -i ../configure.ac.patch || true
38         msg "Starting build"
39         aclocal && libtoolize --automake && autoheader && automake --add-missing && autoconf || return $?
40         ./configure --prefix=/usr || return $?
41         make || return $?
42         make DESTDIR=${pkgdir} install || return $?
45 md5sums=('050b4f9c98b47025b6d0173465e7e567')