Advertisement
Guest User

Untitled

a guest
Mar 10th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.50 KB | None | 0 0
  1. ─llama@Mac95XP in ~ as 🧙 took 16s
  2. ✦ ╰─λ yay -S pamac-aur
  3. :: Checking for conflicts...
  4. :: Checking for inner conflicts...
  5. [Repo Make:11] appstream-glib-0.8.2-1 archlinux-appstream-data-20230220-1 docbook-xml-4.5-9 itstool-1:2.0.7-1 docbook-xsl-1.79.2-7 glib2-docs-2.74.6-1 python-pygments-2.14.0-2 python-anytree-2.8.0-5 gtk-doc-1.33.2-1 vala-0.56.4-1 asciidoc-10.2.0-2
  6. [Aur:1] pamac-aur-10.4.3-1
  7. [Aur Make:1] libpamac-aur-11.4.1-1
  8.  
  9. :: Remove make dependencies after install? [y/N] y
  10. :: (1/2) Downloaded PKGBUILD: libpamac-aur
  11. :: (2/2) Downloaded PKGBUILD: pamac-aur
  12. 2 libpamac-aur (Build Files Exist)
  13. 1 pamac-aur (Build Files Exist)
  14. ==> Diffs to show?
  15. ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
  16. ==> a
  17. diff --git /home/llama/.cache/yay/libpamac-aur/.gitignore /home/llama/.cache/yay/libpamac-aur/.gitignore
  18. new file mode 100644
  19. index 0000000..81d8e83
  20. --- /dev/null
  21. +++ /home/llama/.cache/yay/libpamac-aur/.gitignore
  22. @@ -0,0 +1,5 @@
  23. +*.gz
  24. +*.tar
  25. +*.tar.*
  26. +/pkg/*
  27. +/src/*
  28. diff --git /home/llama/.cache/yay/libpamac-aur/PKGBUILD /home/llama/.cache/yay/libpamac-aur/PKGBUILD
  29. new file mode 100644
  30. index 0000000..c9bf719
  31. --- /dev/null
  32. +++ /home/llama/.cache/yay/libpamac-aur/PKGBUILD
  33. @@ -0,0 +1,70 @@
  34. +# Contributor: Zeph <zeph33@gmail.com>
  35. +# Maintainer: Zeph <zeph33@gmail.com>
  36. +# https://gitlab.manjaro.org/packages/extra/libpamac
  37. +ENABLE_FLATPAK=0
  38. +ENABLE_SNAPD=0
  39. +
  40. +pkgname=libpamac-aur
  41. +pkgver=11.4.1
  42. +pkgrel=1
  43. +_pkgfixver=$pkgver
  44. +
  45. +_commit='29d71809ee4171585d58a2f652a2eaa05e3dbfb0'
  46. +sha256sums=('b7f69c45f89fc587241b0237dab00cb19314904a4dc7025523aebd28ea59d3d2'
  47. + '6e0c25f0fcb0076ce78845b037e32925fcc3f1cd1670062c48ed35f564a10244'
  48. + 'c2b943318a01ba1f3dabbf32e48e6a6f4b4b774e167ab86c6bfee31aa4a3424c')
  49. +
  50. +pkgdesc="Pamac package manager library based on libalpm"
  51. +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
  52. +url="https://gitlab.manjaro.org/applications/libpamac"
  53. +license=('GPL3')
  54. +depends=('glib2>=2.42' 'json-glib' 'libsoup3' 'dbus-glib' 'polkit' 'vte3>=0.38'
  55. + 'libnotify' 'pacman>=6.0' 'pacman<6.1' 'gnutls>=3.4' 'git'
  56. + 'appstream-glib>=0.7.18-1' 'archlinux-appstream-data' 'git')
  57. +
  58. +makedepends=('gettext' 'itstool' 'vala>=0.46' 'asciidoc' 'meson' 'ninja' 'gobject-introspection')
  59. +backup=('etc/pamac.conf')
  60. +conflicts=('libpamac' 'libpamac-all')
  61. +provides=('libpamac')
  62. +options=(!emptydirs !strip)
  63. +install=pamac.install
  64. +source=("libpamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/$_commit/libpamac-$_commit.tar.gz"
  65. + fix-appstream-data.sh fix-appstream-data.hook)
  66. +
  67. +define_meson=''
  68. +if [ "${ENABLE_FLATPAK}" = 1 ]; then
  69. + depends+=('flatpak')
  70. + define_meson+=' -Denable-flatpak=true'
  71. +fi
  72. +
  73. +if [ "${ENABLE_SNAPD}" = 1 ]; then
  74. + depends+=('snapd' 'snapd-glib')
  75. + define_meson+=' -Denable-snap=true'
  76. +fi
  77. +
  78. +prepare() {
  79. + cd "$srcdir/libpamac-$_commit"
  80. + # adjust version string
  81. + sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
  82. +}
  83. +
  84. +build() {
  85. + cd "$srcdir/libpamac-$_commit"
  86. + mkdir -p builddir
  87. + cd builddir
  88. + meson setup --buildtype=release \
  89. + --prefix=/usr \
  90. + --sysconfdir=/etc $define_meson
  91. + # build
  92. + meson compile
  93. +}
  94. +
  95. +package() {
  96. + cd "$srcdir/libpamac-$_commit/builddir"
  97. + DESTDIR="$pkgdir" ninja install
  98. + # fix appstream issue
  99. + install -Dm644 "$srcdir/fix-appstream-data.hook" "$pkgdir/etc/pacman.d/hooks/fix-appstream-data.hook"
  100. + install -Dm755 "$srcdir/fix-appstream-data.sh" "$pkgdir/etc/pacman.d/hooks.bin/fix-appstream-data.sh"
  101. +
  102. +}
  103. +# vim:set ts=2 sw=2 et:
  104. diff --git /home/llama/.cache/yay/libpamac-aur/fix-appstream-data.hook /home/llama/.cache/yay/libpamac-aur/fix-appstream-data.hook
  105. new file mode 100644
  106. index 0000000..9bdff11
  107. --- /dev/null
  108. +++ /home/llama/.cache/yay/libpamac-aur/fix-appstream-data.hook
  109. @@ -0,0 +1,14 @@
  110. +[Trigger]
  111. +Operation = Install
  112. +Operation = Upgrade
  113. +Type = Path
  114. +Target = usr/share/app-info/xmls/*.xml.gz
  115. +
  116. +# attention: hook name before: update-appstream-cache.hook
  117. +
  118. +[Action]
  119. +Description = fix appstream datas for pamac
  120. +When = PostTransaction
  121. +Depends = gzip
  122. +Exec = /etc/pacman.d/hooks.bin/fix-appstream-data.sh
  123. +NeedsTargets
  124. diff --git /home/llama/.cache/yay/libpamac-aur/fix-appstream-data.sh /home/llama/.cache/yay/libpamac-aur/fix-appstream-data.sh
  125. new file mode 100644
  126. index 0000000..6b0ed4f
  127. --- /dev/null
  128. +++ /home/llama/.cache/yay/libpamac-aur/fix-appstream-data.sh
  129. @@ -0,0 +1,10 @@
  130. +#!/bin/bash
  131. +tmp="/tmp/fix-appstream-data"
  132. +while read -r archive; do
  133. + if [[ $(zcat "${archive}" | grep -cm1 '<em>') == "1" ]]; then
  134. + zcat "${archive}" | sed 's|<em>||g;s|<\/em>||g;' | sed 's|<code>||g;s|<\/code>||g;'| gzip > "${tmp}"
  135. + cp "${tmp}" "${archive}"
  136. + rm "${tmp}"
  137. + echo " archive ${archive} fixed"
  138. + fi
  139. +done
  140. diff --git /home/llama/.cache/yay/libpamac-aur/pamac.install /home/llama/.cache/yay/libpamac-aur/pamac.install
  141. new file mode 100644
  142. index 0000000..10a07b6
  143. --- /dev/null
  144. +++ /home/llama/.cache/yay/libpamac-aur/pamac.install
  145. @@ -0,0 +1,57 @@
  146. +msg() {
  147. + ALL_OFF="\e[1;0m"
  148. + BOLD="\e[1;1m"
  149. + GREEN="${BOLD}\e[1;32m"
  150. + local mesg=$1; shift
  151. + printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
  152. +}
  153. +
  154. +restore_conf() {
  155. + PAMAC_NEW="$(date +%m%d%M%S)"
  156. + if [ -f "/etc/pamac.conf.pacsave" ]; then
  157. + msg "You had an old /etc/pamac.conf.pacsave file. We restore it for you."
  158. + msg "You can find your new pamac.conf saved as \`/etc/pamac-new-${PAMAC_NEW}.conf\`"
  159. + mv /etc/pamac.conf /etc/pamac-new-${PAMAC_NEW}.conf
  160. + mv /etc/pamac.conf.pacsave /etc/pamac.conf
  161. + fi
  162. +}
  163. +
  164. +post_install() {
  165. + # enable flatpak repo
  166. + if [ -f /usr/bin/flatpak ]; then
  167. + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  168. + fi
  169. + # enable systemd timers
  170. + mkdir -p /etc/systemd/system/timers.target.wants
  171. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  172. + # restore old conf
  173. + restore_conf
  174. +}
  175. +
  176. +post_upgrade() {
  177. + # enable flatpak repo
  178. + if [ -f /usr/bin/flatpak ]; then
  179. + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  180. + fi
  181. + # restore old conf
  182. + if [ "$(vercmp $2 7.3.5-3)" -lt 0 ]; then
  183. + restore_conf
  184. + fi
  185. +
  186. + if [ "$(vercmp $2 8.0.3-5)" -lt 0 ]; then
  187. + # remove wrong placed symlinks
  188. + msg "Updating timer symlinks"
  189. + [[ -e /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
  190. + # [[ -e /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
  191. + # enable systemd timers
  192. + mkdir -p /etc/systemd/system/timers.target.wants
  193. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  194. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  195. + fi
  196. +}
  197. +
  198. +post_remove() {
  199. + # disable systemd timers
  200. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  201. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  202. +}
  203. ...skipping...
  204. + msg "Updating timer symlinks"
  205. + [[ -e /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
  206. + # [[ -e /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
  207. + # enable systemd timers
  208. + mkdir -p /etc/systemd/system/timers.target.wants
  209. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  210. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  211. + fi
  212. +}
  213. +
  214. +post_remove() {
  215. + # disable systemd timers
  216. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  217. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  218. +}
  219. ...skipping...
  220. + msg "Updating timer symlinks"
  221. + [[ -e /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
  222. + # [[ -e /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
  223. + # enable systemd timers
  224. + mkdir -p /etc/systemd/system/timers.target.wants
  225. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  226. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  227. + fi
  228. +}
  229. +
  230. +post_remove() {
  231. + # disable systemd timers
  232. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  233. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  234. +}
  235. ~
  236. ~
  237. ~
  238. ~
  239. ~
  240. ~
  241. ~
  242. ...skipping...
  243. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  244. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  245. + fi
  246. +}
  247. +
  248. +post_remove() {
  249. + # disable systemd timers
  250. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  251. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  252. +}
  253. ~
  254. ~
  255. ~
  256. ~
  257. ~
  258. ~
  259. ~
  260. ...skipping...
  261. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  262. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  263. + fi
  264. +}
  265. +
  266. +post_remove() {
  267. + # disable systemd timers
  268. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  269. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  270. +}
  271. ~
  272. ~
  273. ~
  274. ~
  275. ~
  276. ~
  277. ~
  278. ...skipping...
  279. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  280. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  281. + fi
  282. +}
  283. +
  284. +post_remove() {
  285. + # disable systemd timers
  286. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  287. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  288. +}
  289. ~
  290. ~
  291. ~
  292. ~
  293. ~
  294. ~
  295. ~
  296. ...skipping...
  297. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  298. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  299. + fi
  300. +}
  301. +
  302. +post_remove() {
  303. + # disable systemd timers
  304. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  305. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  306. +}
  307. ~
  308. ~
  309. ~
  310. ~
  311. ~
  312. ~
  313. ~
  314. ...skipping...
  315. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  316. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  317. + fi
  318. +}
  319. +
  320. +post_remove() {
  321. + # disable systemd timers
  322. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  323. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  324. +}
  325. ~
  326. ~
  327. ~
  328. ~
  329. ~
  330. ~
  331. ~
  332. set mark: ...skipping...
  333. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  334. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  335. + fi
  336. +}
  337. +
  338. +post_remove() {
  339. + # disable systemd timers
  340. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  341. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  342. +}
  343. ~
  344. ~
  345. ~
  346. ~
  347. ~
  348. ~
  349. ~
  350. set mark: ...skipping...
  351. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  352. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  353. + fi
  354. +}
  355. +
  356. +post_remove() {
  357. + # disable systemd timers
  358. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  359. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  360. +}
  361. ~
  362. ~
  363. ~
  364. ~
  365. ~
  366. ~
  367. ~
  368. ...skipping...
  369. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  370. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  371. + fi
  372. +}
  373. +
  374. +post_remove() {
  375. + # disable systemd timers
  376. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  377. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  378. +}
  379. ~
  380. ~
  381. ~
  382. ~
  383. ~
  384. ~
  385. ~
  386. ...skipping...
  387. + msg "Updating timer symlinks"
  388. + [[ -e /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
  389. + # [[ -e /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
  390. + # enable systemd timers
  391. + mkdir -p /etc/systemd/system/timers.target.wants
  392. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  393. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  394. + fi
  395. +}
  396. +
  397. +post_remove() {
  398. + # disable systemd timers
  399. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  400. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  401. +}
  402. ...skipping...
  403. + mkdir -p /etc/systemd/system/timers.target.wants
  404. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.want
  405. s/pamac-cleancache.timer
  406. + # restore old conf
  407. + restore_conf
  408. +}
  409. +
  410. +post_upgrade() {
  411. + # enable flatpak repo
  412. + if [ -f /usr/bin/flatpak ]; then
  413. + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  414. + fi
  415. + # restore old conf
  416. + if [ "$(vercmp $2 7.3.5-3)" -lt 0 ]; then
  417. + restore_conf
  418. + fi
  419. +
  420. + if [ "$(vercmp $2 8.0.3-5)" -lt 0 ]; then
  421. + # remove wrong placed symlinks
  422. + msg "Updating timer symlinks"
  423. + [[ -e /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
  424. + # [[ -e /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer ]] && rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
  425. + # enable systemd timers
  426. + mkdir -p /etc/systemd/system/timers.target.wants
  427. + ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  428. + # ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  429. + fi
  430. +}
  431. +
  432. +post_remove() {
  433. + # disable systemd timers
  434. + rm -f /etc/systemd/system/timers.target.wants/pamac-cleancache.timer
  435. + # rm -f /etc/systemd/system/timers.target.wants/pamac-mirrorlist.timer
  436. +}
  437. (END)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement