desktop/tools-pkg-grub2-editor/PKGBUILD

40 lines
945 B
Bash
Raw Normal View History

2013-12-18 02:36:04 +08:00
2013-12-18 02:41:12 +08:00
# Maintainer (i686): Phil Miller <philm@chakra-project[dog]org>
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
pkgname=grub2-editor
_pkgname=kcm-grub2
pkgver=0.5.0
pkgrel=1
pkgdesc="A KDE4 control module for configuring the GRUB2 bootloader."
arch=(i686 x86_64)
url="http://kde-apps.org/content/show.php?content=139643"
license=(GPLv3)
depends=('kdebase-workspace' 'hwinfo' 'imagemagick' 'libwmf' )
makedepends=('cmake' 'automoc4')
2012-03-06 17:59:48 +08:00
categories=('system')
source=("http://prdownloads.sourceforge.net/project/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
md5sums=('0df02a345f24351d13f1471e08bc25f1')
build(){
cd ${srcdir}/${_pkgname}-${pkgver}
if [ -d build ] ; then
rm build -rf
fi
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package(){
cd ${srcdir}/${_pkgname}-${pkgver}/build
make DESTDIR="${pkgdir}" install
}