1 # Contributor: Kosenko Roman <madkite@gmail.com>
5 pkgdesc='A command-line program for getting and setting the contents of the X selection'
7 url='http://www.vergenet.net/~conrad/software/xsel/'
9 depends=(libxext libsm)
12 source=(configure.ac.patch)
14 _svntrunk=http://svn.kfish.org/xsel/trunk/
20 msg "Connecting to $_svntrunk ..."
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver) || return $?
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return $?
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
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
39 aclocal && libtoolize --automake && autoheader && automake --add-missing && autoconf || return $?
40 ./configure --prefix=/usr || return $?
42 make DESTDIR=${pkgdir} install || return $?
45 md5sums=('050b4f9c98b47025b6d0173465e7e567')