mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 23:47:17 +00:00
Added stdin
This commit is contained in:
parent
63c7442c7b
commit
bc17b9985d
47
kdeplasma-applets-stdin-svn/PKGBUILD
Normal file
47
kdeplasma-applets-stdin-svn/PKGBUILD
Normal file
@ -0,0 +1,47 @@
|
||||
# Contributor: weirdfox <weirdfox@gmail.com>
|
||||
# Maintainer: Evgeniy "arcanis" Alekseev <esalexeev@gmail.com>
|
||||
|
||||
pkgname=kdeplasma-applets-stdin-svn
|
||||
pkgver=57
|
||||
pkgrel=1
|
||||
_pkgname=plasmoidstdin
|
||||
_pkgver=0.2
|
||||
pkgdesc="This plasmoid executes a process and captures its stdout or stderr output stream"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.kde-look.org/content/show.php/STDIN+Plasmoid?content=92309"
|
||||
license=('GPL')
|
||||
depends=('kdebase-workspace')
|
||||
makedepends=('cmake' 'automoc4' 'subversion')
|
||||
install=${pkgname}.install
|
||||
|
||||
_svntrunk="https://plasmoidstdin.svn.sourceforge.net/svnroot/${_pkgname}/${_pkgver}/trunk"
|
||||
_svnmod=stdin
|
||||
|
||||
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 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
../${_svnmod}
|
||||
make
|
||||
}
|
||||
|
||||
package()
|
||||
{
|
||||
cd ${srcdir}/build
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
post_install()
|
||||
{
|
||||
cat << EOF
|
||||
Update plasmoids...
|
||||
EOF
|
||||
kbuildsycoca4 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
post_upgrade()
|
||||
{
|
||||
cat << EOF
|
||||
Update plasmoids...
|
||||
EOF
|
||||
kbuildsycoca4 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
post_remove()
|
||||
{
|
||||
cat << EOF
|
||||
Update plasmoids...
|
||||
EOF
|
||||
kbuildsycoca4 > /dev/null 2>&1
|
||||
}
|
Loading…
Reference in New Issue
Block a user