Manjaro Linux-手动构建并安装AUR软件包随记
发布时间
阅读量:
阅读量
通过上网查阅相关资料库实现了Manjaro Deepin Linux&Win10双系统的安装。
安装在ThinkPad E480笔记本电脑上体验非常良好。
按照通常的习惯, 安备应用程序程序名为'BoostNote'。
在Manjaro的软件管理界面中, 发现遇到无法完成构建操作的问题。
只能选择手动添加AUR版本。

按照其他发行版安装软件包的经验,访问boostnote官网,需要下载AUR包
访问Boostnote | Boost Happiness, Productivity, and Creativity. ,并按照指示打开下载页面后,请根据指南选择AUR或ARCH Linux版本进行安装。

以git为工具的方式获取软件源代码包:使用git命令克隆仓库地址https://aur.archlinux.org/boostnote.git

git clone https://aur.archlinux.org/boostnote.git
Cloning into 'boostnote'...
remote: Enumerating objects: 285, done.
remote: Counting objects: 100% (285/285), done.
remote: Compressing objects: 100% (160/160), done.
remote: Total 285 (delta 126), reused 284 (delta 125)
Receiving objects: 100% (285/285), 120.64 KiB | 3.00 KiB/s, done.
Resolving deltas: 100% (126/126), done.
AI写代码
- 进入boostnote软件包目录,执行 makepkg ,构建软件包
ls -l
total 44
-rwxrwxrwx 1 jay jay 3169 Oct 24 16:41 PKGBUILD
-rwxrwxrwx 1 jay jay 341 Oct 24 16:41 boostnote.desktop
-rwxrwxrwx 1 jay jay 897 Oct 24 16:41 boostnote.js
-rwxrwxrwx 1 jay jay 565 Oct 24 16:41 disable-analytics.patch
-rwxrwxrwx 1 jay jay 1016 Oct 24 16:41 electron-v2-compatibility.patch
-rwxrwxrwx 1 jay jay 864 Oct 24 16:41 electron_4.patch
-rwxrwxrwx 1 jay jay 495 Oct 24 16:41 electron_5_fix.patch
-rwxrwxrwx 1 jay jay 3346 Oct 24 16:41 fix-js-sequence-diagrams.patch
-rwxrwxrwx 1 jay jay 5567 Oct 24 16:41 insertion-fix.patch
-rwxrwxrwx 1 jay jay 10462 Oct 24 16:41 remove-analytics.patch
-rwxrwxrwx 1 jay jay 1729 Oct 24 16:41 warning-fix.patch
AI写代码
makepkg
==> Making package: boostnote 0.12.1-1 (2019年10月24日 星期四 16时46分08秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading boostnote-0.12.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 126 0 126 0 0 149 0 --:--:-- --:--:-- --:--:-- 149
100 5321k 0 5321k 0 0 690k 0 --:--:-- 0:00:07 --:--:-- 887k
-> Found boostnote.js
-> Found boostnote.desktop
-> Found warning-fix.patch
-> Found remove-analytics.patch
-> Found electron_4.patch
-> Found electron_5_fix.patch
==> Validating source files with sha512sums...
boostnote-0.12.1.tar.gz ... Passed
boostnote.js ... Passed
boostnote.desktop ... Passed
warning-fix.patch ... Passed
remove-analytics.patch ... Passed
electron_4.patch ... Passed
electron_5_fix.patch ... Passed
==> Extracting sources...
-> Extracting boostnote-0.12.1.tar.gz with bsdtar
==> Starting prepare()...
patching file gruntfile.js
Hunk #1 succeeded at 7 (offset 1 line).
Hunk #2 succeeded at 15 (offset 1 line).
Hunk #3 succeeded at 77 (offset 1 line).
patching file package.json
Hunk #1 succeeded at 154 with fuzz 2 (offset 28 lines).
Hunk #2 succeeded at 176 (offset 30 lines).
Hunk #3 succeeded at 212 with fuzz 2 (offset 35 lines).
patching file browser/lib/newNote.js
patching file browser/main/Detail/MarkdownNoteDetail.js
patching file browser/main/Detail/SnippetNoteDetail.js
patching file browser/main/Detail/TagSelect.js
patching file browser/main/Main.js
patching file browser/main/modals/CreateFolderModal.js
patching file browser/main/modals/PreferencesModal/InfoTab.js
patching file browser/main/NoteList/index.js
patching file package.json
patching file lib/main-app.js
patching file lib/main-window.js
Hunk #1 succeeded at 50 (offset 27 lines).
==> Starting build()...
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @enyaxu/markdown-it-anchor@5.0.2" has incorrect peer dependency "markdown-it@^8.4.1".
warning " > connected-react-router@6.4.0" has incorrect peer dependency "react-redux@^6.0.0".
warning " > connected-react-router@6.4.0" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
warning " > react-codemirror@1.0.0" has incorrect peer dependency "react@>=15.5 <16".
warning " > react-codemirror@1.0.0" has incorrect peer dependency "react-dom@>=15.5 <16".
warning " > eslint-config-standard@6.2.1" has unmet peer dependency "eslint-plugin-promise@>=3.3.0".
warning " > redux-devtools@3.5.0" has incorrect peer dependency "react-redux@^4.0.0 || ^5.0.0 || ^6.0.0".
warning " > grunt-electron-installer-debian@0.2.0" has incorrect peer dependency "grunt@^0.4.0".
[4/4] Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.19.1", while you're on "1.17.3".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
Done in 270.43s.
yarn run v1.17.3
$ grunt compile
Running "compile" task
node_modules/.bin/webpack --config webpack-production.config.js
Hash: 28c013d01aed2a1d53fd
Version: webpack 1.15.0
Time: 27107ms
Asset Size Chunks Chunk Names
main.js 8 MB 0 [emitted] main
[0] multi main 28 bytes {0} [built]
+ 1392 hidden modules
Done.
Done in 28.43s.
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @enyaxu/markdown-it-anchor@5.0.2" has incorrect peer dependency "markdown-it@^8.4.1".
warning " > connected-react-router@6.4.0" has incorrect peer dependency "react-redux@^6.0.0".
warning " > connected-react-router@6.4.0" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
warning " > react-codemirror@1.0.0" has incorrect peer dependency "react@>=15.5 <16".
warning " > react-codemirror@1.0.0" has incorrect peer dependency "react-dom@>=15.5 <16".
warning " > eslint-config-standard@6.2.1" has unmet peer dependency "eslint-plugin-promise@>=3.3.0".
warning " > redux-devtools@3.5.0" has incorrect peer dependency "react-redux@^4.0.0 || ^5.0.0 || ^6.0.0".
warning " > grunt-electron-installer-debian@0.2.0" has incorrect peer dependency "grunt@^0.4.0".
[4/4] Building fresh packages...
Done in 7.49s.
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "boostnote"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: boostnote 0.12.1-1 (2019年10月24日 星期四 16时55分01秒)
AI写代码
- 查看软件包
再次查看当前目录下,生成了软件包boostnote-0.12.1-1-any.pkg.tar.xz ,然后通过软件包管理器,本地选择安装软件包,Install local packages

全部评论 (0)
还没有任何评论哟~
