You are not logged in.
Hello,
I have the following PKGBUILD:
# Maintainer: Jan Novotny <shadenk30011@gmail.com>
pkgname=wpa_wrapper
pkgver=1.0
pkgrel=1
pkgdesc="Network management utility"
arch=(any)
license=('GPL3')
depends=(sudo iw wpa_supplicant python3 net-tools)
makedepends=(git)
source=("$pkgname::git+https://github.com/CuBeRJAN/$pkgname-cleanup.git"
"https://raw.githubusercontent.com/CuBeR … ts/main.py")
sha256sums=('SKIP'
'3da2a1fdf21064eff3389a870feab069b6bf95ab3253e6ce35d6fc7c3bb6d0be')
package() {
cd "$pkgname"
sudo make DESTDIR="$pkgdir/" install
}
--------------------------------------------------------------------------------------------------------------
It installs just fine, but removing the package leaves leftover files. What did I do wrong?
Last edited by CuBeRJAN (2020-02-16 23:44:51)
Offline
And what's the problem specifically? What files?
Last edited by Scimmia (2020-02-16 21:55:31)
Offline
And what's the problem?
When uninstalling with 'pacman -Rs wpa_wrapper' it leaves all the files under /usr/share and /usr/bin
Offline
Sorry, I edited for clarity while you were responding. What files, specifically?
Edit: Oh, I see the problem, you're not creating a package at all. Remove sudo, which is installing files directly into the filesystem, then fix the makefile to respect DESTDIR
Last edited by Scimmia (2020-02-16 21:57:22)
Offline
Sorry, I edited for clarity while you were responding. What files, specifically?
/usr/bin/wpa_wrapper
/usr/bin/wpa_wrapper-last
/usr/share/wpa_wrapper/ (entire directory)
Offline
And another edit while you were responding
Offline
Sorry, I edited for clarity while you were responding. What files, specifically?
Edit: Oh, I see the problem, you're not creating a package at all. Remove sudo, which is installing files directly into the filesystem, then fix the makefile to respect DESTDIR
Thanks! I don't know how I could miss something so obvious...
Offline