You are not logged in.

#1 2024-07-01 22:55:15

avidseeker
Member
Registered: 2022-09-06
Posts: 62
Website

Rootless PKGBUILD

E.g: fonts can be installed per user in "$HOME"/.local/share/fonts. One can have a modified PKGBUILD like this:

pkgname=ttf-roboto
pkgver=2.138
pkgrel=4
pkgdesc="Google's signature family of fonts"
url='https://material.google.com/style/typography.html'
arch=('any')
license=('Apache')
source=(https://sources.archlinux.org/other/packages/ttf-roboto/ttf-roboto-hinted-$pkgver.zip)
sha256sums=('07450a24476bced534a8afbd89595302a532e9348ca6c82f4b13c437a309a34c')

package() {
	mkdir -p "$pkgdir"/"$HOME"/.local/share/fonts/TTF
	install -Dm644 *.ttf -t "$pkgdir"/"$HOME"/.local/share/fonts/TTF
}

Yet, makepkg -si still requires password.

Offline

#2 2024-07-01 23:09:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: Rootless PKGBUILD

Packages can't go to $HOME. If you can't take it to a different machine with different users, install it, and use it, it's not a valid package.

Offline

Board footer

Powered by FluxBB