Edited pkgbuilds

- removed "|| return 1"
This commit is contained in:
arcan1s
2013-09-28 21:51:57 +04:00
parent 9037091eb3
commit 4fa735804d
19 changed files with 93 additions and 103 deletions

View File

@ -12,34 +12,31 @@ url="http://www.kde-look.org/content/show.php/STDIN+Plasmoid?content=92309"
license=('GPL')
depends=('kdebase-workspace')
makedepends=('automoc4' 'cmake' 'subversion')
source=(${_pkgname}::svn+https://plasmoidstdin.svn.sourceforge.net/svnroot/${_pkgname}/${_pkgver}/trunk)
install=${pkgname}.install
md5sums=('SKIP')
_svntrunk="https://plasmoidstdin.svn.sourceforge.net/svnroot/${_pkgname}/${_pkgver}/trunk"
_svnmod=${_pkgname}
pkgver()
{
cd ${srcdir}/${_pkgname}
local ver=`svnversion`
printf "%s" ${ver//[[:alpha:]]}
}
build()
{
msg "Connecting to 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 build..."
if [ -d ${srcdir}/build ]; then
rm -rf ${srcdir}/build
fi
mkdir ${srcdir}/build && cd ${srcdir}/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
-DCMAKE_BUILD_TYPE=Release \
../${_svnmod}
make || return 1
../${_pkgname}
make
}
package()
{
cd ${srcdir}/build
make DESTDIR=${pkgdir} install || return 1
make DESTDIR=${pkgdir} install
}

View File

@ -8,16 +8,10 @@ EOF
post_upgrade()
{
cat << EOF
Update plasmoids...
EOF
kbuildsycoca4 > /dev/null 2>&1
post_install
}
post_remove()
{
cat << EOF
Update plasmoids...
EOF
kbuildsycoca4 > /dev/null 2>&1
post_install
}