Skip to content

Commit deb3ded

Browse files
committed
Adds uninstall instruction
1 parent 90e6444 commit deb3ded

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.install

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@
3131

3232
## arg 1: the old package version
3333
post_remove() {
34-
./install.sh uninstall;
34+
local INSTALL_DIR=/usr/lib/bsp-layout;
35+
local BINARY=/usr/local/bin/bsp-layout;
36+
37+
# Clean up
38+
rm -rf $INSTALL_DIR;
39+
rm -rf $BINARY;
3540
}

PKGBUILD

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ provides=("$pkgname")
1414
conflicts=("$pkgname")
1515
install=".install"
1616
source=('git+https://github.com/phenax/bsp-layout.git')
17-
noextract=()
18-
md5sums=()
17+
md5sums=('SKIP')
1918

2019
package() {
21-
cd "$pkgname-$pkgver"
22-
./install.sh local;
20+
cd "$pkgname";
21+
sudo ./install.sh local;
2322
}

0 commit comments

Comments
 (0)