desktop/kde-wallpapers/PKGBUILD
2010-10-16 22:14:00 +00:00

163 lines
4.2 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
#
# package info
#
pkgname=kde-wallpapers
pkgver=1.0
pkgrel=1
pkgbase="kde-wallpapers"
pkgname=("kde-wallpapers-crunchy-branch-blue"
"kde-wallpapers-ashoc"
"kde-wallpapers-neda")
pkgdesc="KDE Wallpapers for Chakra"
url="http://www.chakra-project.org"
license="GPL"
arch=('any')
options=('!splithdr' 'splitdbg')
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal")
source=("http://chakra-project.org/sources/kde-wallpapers/kde-wallpapers-crunchy-branch-blue-1.0.tar.gz"
"http://chakra-project.org/sources/kde-wallpapers/kde-wallpapers-ashoc-1.0-2.tar.gz"
"http://chakra-project.org/sources/neda/NEDA.tar.gz")
md5sums=("52d75a03f18204dde7965bd3dccb9ce4" # kde-wallpapers-crunchy-branch-blue-1.0.tar.gz
"e6a3a7e170a739d226c180f5c2a09618" # kde-wallpapers-ashoc-1.0-2.tar.gz
"81417a60f22584e6f8c1bbbad1f191a2") # NEDA.tar.gz
#_gitroot="git://git.chakra-project.org/artwork/kde-wallpapers.git"
#_gitname="kde-wallpapers"
#
# build function
#
build() {
echo "Let's go"
# Smart hack here, cool :)
# cd "${srcdir}"
# msg "Connecting to GIT server...."
#
# if [ -d $_gitname ] ; then
# cd $_gitname && git pull
# msg "The local files are updated."
# else
# git clone $_gitroot
# fi
# msg "GIT checkout done or server timeout"
# msg "Starting make..."
#
# rm -rf "${srcdir}/$_gitname-build"
#
# cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
}
#
# split-install functions
#
package_kde-wallpapers-crunchy-branch-blue()
{
pkgver=1.0
pkgrel=1
pkgdesc="Crunchy-Branch Wallpaper (blue) by Carles Codony"
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal" "kde-wallpapers")
_WALLPAPER="crunchy-branch-blue"
cd ${srcdir}/$_WALLPAPER
mkdir -pv $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
cp -Rv * $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
cd $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
# #fix structure
# _FILES="*.jpg"
# for i in $_FILES
# do
# #proper rename
# _OUT=$(echo $i | sed "s/KDEmod-Galaxair-//g" | sed 's/-/x/g')
# mv -v $i $_OUT
# done
cp -v $startdir/metadata.desktop $pkgdir/usr/share/wallpapers/$_WALLPAPER
cd $pkgdir/usr/share/wallpapers/$_WALLPAPER
sed -i -e "s~WALLPAPERNAME~$_WALLPAPER~g" metadata.desktop
sed -i -e "s~AUTHOR~Carles Codony~g" metadata.desktop
}
package_kde-wallpapers-ashoc()
{
pkgver=1.0
pkgrel=2
pkgdesc="Ashoc Wallpaper by Taner Candan"
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal" "kde-wallpapers")
_WALLPAPER="ashoc"
cd ${srcdir}/$_WALLPAPER
mkdir -pv $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
cp -Rv * $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
cd $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
# #fix structure
# _FILES="*.jpg"
# for i in $_FILES
# do
# #proper rename
# _OUT=$(echo $i | sed "s/KDEmod-Galaxair-//g" | sed 's/-/x/g')
# mv -v $i $_OUT
# done
cp -v $startdir/metadata.desktop $pkgdir/usr/share/wallpapers/$_WALLPAPER
cd $pkgdir/usr/share/wallpapers/$_WALLPAPER
sed -i -e "s~WALLPAPERNAME~$_WALLPAPER~g" metadata.desktop
sed -i -e "s~AUTHOR~Taner Candan~g" metadata.desktop
}
package_kde-wallpapers-neda()
{
pkgver=1.0
pkgrel=1
pkgdesc="Chakra NEDA Theme by Roozbeh Shafiee "
groups=("kde" "kde-complete" "kde-uninstall" "kde-minimal" "kde-wallpapers")
_WALLPAPER="NEDA"
cd ${srcdir}/NEDA/wallpaper/
mkdir -pv $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
cp -Rv * $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
cd $pkgdir/usr/share/wallpapers/$_WALLPAPER/contents/images
# #fix structure
# _FILES="*.jpg"
# for i in $_FILES
# do
# #proper rename
# _OUT=$(echo $i | sed "s/KDEmod-Galaxair-//g" | sed 's/-/x/g')
# mv -v $i $_OUT
# done
cp -v $startdir/metadata.desktop $pkgdir/usr/share/wallpapers/$_WALLPAPER
cd $pkgdir/usr/share/wallpapers/$_WALLPAPER
sed -i -e "s~WALLPAPERNAME~$_WALLPAPER~g" metadata.desktop
sed -i -e "s~AUTHOR~Roozbeh Shafiee~g" metadata.desktop
}