Fixed pkgbuilds

This commit is contained in:
arcan1s
2013-09-30 01:08:56 +04:00
parent a940323b32
commit f3c0d15913
19 changed files with 157 additions and 143 deletions

View File

@ -21,16 +21,16 @@ _cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr
build ()
{
if [ -d ${srcdir}/build ]; then
rm -rf ${srcdir}/build
if [[ -d ${srcdir}/build ]]; then
rm -rf "${srcdir}/build"
fi
mkdir ${srcdir}/build && cd ${srcdir}/build
mkdir "${srcdir}/build"; cd "${srcdir}/build"
cmake ${_cmakekeys} ../
make
}
package()
{
cd ${srcdir}/build
make DESTDIR=${pkgdir} instal
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}