You are not logged in.
I am just creating my own archlinux package but instead of reading the wiki I don't understand well how to install it without use sudo.
This is my package():
(...)
package() {
cd "$pkgname"
make DESTDIR="$pkgname" install
}
(...)
And this is my Makefile:
(...)
install: mofiles man
install -Dm755 $(PKG).sh $(DESTDIR)/usr/bin/$(PKG)
install -Dm644 completion/bash $(DESTDIR)/usr/share/bash-completion/completions/$(PKG)
install -Dm644 completion/zsh $(DESTDIR)/usr/share/zsh/site-functions/_$(PKG)
install -Dm644 $(PKG).8 $(DESTDIR)/usr/share/man/man8/$(PKG).8
(...)
But when I execute
makepkg
all is installed inside the folder of the downloaded package, not in the system.
I firstly did it using
sudo make install
in my package() but I read It was not the right way
Last edited by karlospv94 (2017-08-07 18:51:00)
Offline
DESTDIR should be $pkgdir, not $pkgname.
Can you post your full PKGBUILD please.
Offline
DESTDIR should be $pkgdir, not $pkgname.
Can you post your full PKGBUILD please.
I have modified it but I don't get the package installed in the system
pkgname=checkpkg
pkgver=1.0
pkgrel=1
pkgdesc="Bash script for checking updates of given packages"
arch=('any')
url="https://github.com/carmilso/$pkgname"
license=('GPL3')
source=("https://github.com/carmilso/paccheck/releases/download/v$pkgver/v$pkgver.tar.gz")
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}
Offline
My fault...
I didn't read well the section "Testing the PKGBUILD and package" of https://wiki.archlinux.org/index.php/Creating_packages
Last edited by karlospv94 (2017-08-07 18:50:39)
Offline
That is correct.
Have you actually installed the package that makepkg has created?
Offline
That is correct.
Have you actually installed the package that makepkg has created?
Yes. I forgot installing the ".pkg.tar.xz" with pacman. Now it is well installed.
Thanks!
Offline