diff options
author | Grey Christoforo | 2015-08-22 19:29:02 +0100 |
---|---|---|
committer | Grey Christoforo | 2015-08-22 19:29:02 +0100 |
commit | 1203ffde583b308f5ab1bd363f7e81ebf1b92a47 (patch) | |
tree | afdec1bd63cc0bda7c641fc3b9300f20eb9b71d3 | |
parent | c3a7fea72a704cbbcf27d0a8d092caae83a93cd8 (diff) | |
download | aur-1203ffde583b308f5ab1bd363f7e81ebf1b92a47.tar.gz |
better way to manage the messed up cmake installer
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 9 insertions, 6 deletions
@@ -8,7 +8,8 @@ pkgbase = arcus license = GPLv3 makedepends = cmake makedepends = python - depends = protobuf-ultimaker + depends = protobuf3 + depends = python-protobuf3 source = https://github.com/Ultimaker/libArcus/archive/15.06.03.tar.gz md5sums = c61fafaa82f71cef5e0f6780688f853e @@ -8,7 +8,7 @@ url="https://github.com/Ultimaker/libArcus" arch=('i686' 'x86_64') license=('GPLv3') makedepends=('cmake' 'python') -depends=('protobuf-ultimaker') +depends=('protobuf3' 'python-protobuf3') source=(https://github.com/Ultimaker/libArcus/archive/${pkgver}.tar.gz) md5sums=('c61fafaa82f71cef5e0f6780688f853e') @@ -16,7 +16,7 @@ build() { cd libArcus-${pkgver} mkdir build cd build - cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_PYTHON_PACKAGE=OFF + cmake .. -DCMAKE_INSTALL_PREFIX=/usr make } @@ -24,9 +24,11 @@ package() { cd libArcus-${pkgver}/build SITE_PACKAGES=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") make DESTDIR="${pkgdir}" install - mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib - mkdir -p ${pkgdir}${SITE_PACKAGES} - mv ../python/Arcus ${pkgdir}${SITE_PACKAGES}/Arcus + mv "${pkgdir}"/usr/lib64/* "${pkgdir}"/usr/lib/. + rm -rf "${pkgdir}/usr/lib64" + mkdir -p "${pkgdir}${SITE_PACKAGES}" + mv "${pkgdir}"/usr/lib/python3/dist-packages/* "${pkgdir}${SITE_PACKAGES}"/. + rm -rf "${pkgdir}"/usr/lib/python3 #install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } |