TheiaSfM
TheiaSfM copied to clipboard
Created a PKGBUILD for Archlinux; need help to make it 3rd party independent
Here's the PKGBUILD file for the master branch:
pkgname=theiasfm-git
_gitname='TheiaSfM'
_gitbranch="master"
pkgver=0.8
pkgrel=1
pkgdesc='Theia is an end-to-end structure-from-motion library that was created by Chris Sweeney.'
arch=('i686' 'x86_64')
url='http://www.theia-sfm.org/'
license=('BSD')
depends=('rocksdb')
makedepends=('git' 'gcc' 'cmake')
source=("https://github.com/sweeneychris/${_gitname}/archive/${_gitbranch}.zip")
md5sums=('SKIP')
#prepare() {}
build() {
cd "${srcdir}"
mkdir -p theiasfm_build
cd theiasfm_build
cmake ../TheiaSfM-master/
make
}
package() {
cd "${srcdir}/theiasfm_build"
make DESTDIR="$pkgdir" install
}
The only dependency I needed to build was depends=('rocksdb')
but it's not all of them, need help to complete... there is also an issue with the 3rd party libraries:
/pkg/theiasfm-git/usr/local/include
contains:
cereal flann gtest theia
So cereal
can be replaced with aur/cereal 1.2.2-3
?
flann
can be replaced with aur/flann 1.9.1-3
?
And gtest
with community/gtest 1.8.1-3
?
Does anyone have a need for this? And perhaps can help to make it dep. complete and clean?