You are not logged in.
I'm trying to make a basic PKGBUILD for Shark: http://image.diku.dk/shark
pkgname=libshark-svn
pkgver=3.0beta
pkgrel=1
pkgdesc="SHARK is a fast, modular, feature-rich open-source C++ machine learning library."
arch=('x86_64')
url="http://http://image.diku.dk/shark"
license=('GPL2')
groups=()
depends=('boost-libs')
makedepends=('boost' 'subversion')
changelog=
source=('libshark-svn::svn+https://svn.code.sf.net/p/shark-project/code/trunk/Shark')
sha256sums=('SKIP')
sha512sums=('SKIP')
md5sums=('SKIP')
build() {
cd $pkgname
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBoost_NO_SYSTEM_PATHS=TRUE -DBOOST_ROOT=/usr -DBOOST_INCLUDEDIR=/usr/include -DBOOST_LIBRARYDIR=/usr/lib -DBoost_DEBUG=True -DOPT_DYNAMIC_LIBRARY=TRUE -DCMAKE_BUILD_TYPE=Release .
make
}
package() {
make -C $pkgname install
}
It's not perfect according to package guidelines -- I know, will be fixed.
But my main problem is that the install step fails:
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:36 (FILE):
file cannot create directory: /usr/lib/CMake/Shark. Maybe need
administrative privileges.
Any ideas? As far as I understand, makepkg should chroot everything nicely so that the make install is redirected to the pkg/ subdirectory, no? Which definitely does not need root.
dd if=archlinux-XXX.iso of=/dev/sdX
Offline
It seems that CMake creates a "make package" target with which I should be able to hack around this issue. But I'm still curious.
dd if=archlinux-XXX.iso of=/dev/sdX
Offline
Offline