text 乌托邦文件PKGBUILD
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 乌托邦文件PKGBUILD相关的知识,希望对你有一定的参考价值。
# Maintainer: rvasilev <2rvasilev@live.ru>
# Contributor: Zhu Jinxuan <zhujinxuan@gmail.com>
# Contributor: tdy tdy@archlinux.info
pkgname=utopia-documents3
pkgver=3.1.0
pkgrel=2
pkgdesc="PDF reader that displays interactive annotations on scientific articles"
arch=(i686 x86_64)
url=http://utopiadocs.com
license=(GPL)
provides=('utopia-documents')
conflicts=('utopia-documents')
depends=(python boost-libs glu hicolor-icon-theme pcre qt5-svg qt5-webkit qt5-script poppler-qt5 python2-pyqt5)
makedepends=(cmake boost swig glew)
source=("http://utopiadocs.com/files/utopia-documents-${pkgver}.tgz"
"configure.patch"
"0001-qt-version.patch"
"0002-use-system-poppler-api.patch"
"0003-suppress-superfluous-warnings.patch"
"0004-cmake-set-python-and-library-path.patch"
"utopia-documents.sh"
"utopia-documents.bash"
"utopia-documents.zsh")
prepare() {
cd utopia-documents-$pkgver
#patch configure ${srcdir}/configure.patch
patch libutopia2_qt/utopia2/qt/bubble.h ${srcdir}/0001-qt-version.patch
patch libcrackle/crackle/PDFDocument.cpp ${srcdir}/0002-use-system-poppler-api.patch
patch python/utopia-plugins-core/utopia/plugins/core/metadata.py ${srcdir}/0003-suppress-superfluous-warnings.patch
patch CMakeLists.txt ${srcdir}/0004-cmake-set-python-and-library-path.patch
#./configure --release
#cd build/Linux-Release
#cp CMakeCache.txt CMakeCache.txt.1
#sed -i 's|CMAKE_INSTALL_PREFIX:PATH=\/usr|CMAKE_INSTALL_PREFIX:PATH=XXXX|g' CMakeCache.txt.1
#sed -i "s|XXXX|$pkgdir/usr|g" CMakeCache.txt.1
#cp CMakeCache.txt.1 CMakeCache.txt
#cmake -CCMakeConfig/configurations/Linux.txt -CCMakeConfig/configurations/common.txt .
#cmake -C${srcdir}/CMakeConfig/configurations/Linux.txt -C${srcdir}CMakeConfig/configurations/common.txt .
#make
}
build() {
# cd utopia-documents-$pkgver/build/Linux-Release
cd utopia-documents-$pkgver
pushd dependencies
cmake -CCMakeConfig/configurations/common.txt -CCMakeConfig/configurations/Linux.txt .
make
popd
mkdir -p build
pushd build
cmake -C${srcdir}/CMakeConfig/configurations/common.txt -C${srcdir}/CMakeConfig/configurations/Linux.txt ..
make
popd
}
package() {
mkdir ${pkgdir}/etc/profile.d/ -p
install utopia-documents.bash --target-directory=${pkgdir}/etc/profile.d/
install utopia-documents.sh --target-directory=${pkgdir}/etc/profile.d/
install utopia-documents.zsh --target-directory=${pkgdir}/etc/profile.d/
cd utopia-documents-$pkgver
# make install
}
sha256sums=('e6db50a16d2ae53ce051217e6941c5796bf5b9d517b0623ab6ff0b617b04f365'
'efa5a31e8e12b7ffbd4d62cd84a096ea63d91424de23b8f16a4620d57ce79e08'
'0e86ac97639de924519a25a17d7ffff88622da35dd1c5e75292dacd42fb3f909'
'5e6ccd681ca78342d06e3e6f79c787fe6407e5108f69b05786cc732a4dcd265f'
'5b0d6d7382c923bdd268ce540ada7fa8169cf6920914f060bab4ec60fe61f27e'
'69923a50ec21b43992a1bc776468907fd7cbf21eefda63eae644986826bc361c'
'9e4c9f9aee0b3bfa9625989f3de4de5032f7b656b5f6f050d206d1541e30d41a'
'64524d3a3be66f403db44ef40772717aff38445e0e4208c15ac166fe2fcfad0a'
'64524d3a3be66f403db44ef40772717aff38445e0e4208c15ac166fe2fcfad0a')
以上是关于text 乌托邦文件PKGBUILD的主要内容,如果未能解决你的问题,请参考以下文章
text PKGBUILD draftsight 2018SP3-1
text Orfeo Toolbox v6.6.0 PKGBUILD
text Orfeo Toolbox v6.6.0 PKGBUILD
R语言中使用pkgbuild::find_rtools查看是否有Rtools使用Sys.which函数查看make是否存在如果没有则安装使用writeLines函数绑定R和Rtools