Skip to content

Commit 96b7196

Browse files
Matthias Koeppedimpase
authored andcommitted
build/pkgs/frobby: Stage in DESTDIR, create spkg-legacy-uninstall
1 parent cc2f2a1 commit 96b7196

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

build/pkgs/frobby/spkg-install.in

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
rm -rf "$SAGE_LOCAL/bin/frobby"
21

32
GMP_INC_DIR="$SAGE_LOCAL/include"; export GMP_INC_DIR
43
ldflags="-Wl,-rpath,$SAGE_LOCAL/lib -L$SAGE_LOCAL/lib/ -lgmpxx -lgmp"; export ldflags
@@ -12,14 +11,4 @@ if [ $? -ne 0 ]; then
1211
exit 1
1312
fi
1413

15-
if [ ! -f bin/release/frobby ]; then
16-
echo "Frobby executable not found."
17-
exit 1
18-
fi
19-
20-
$CP bin/release/frobby "$SAGE_LOCAL/bin/"
21-
22-
if [ ! -f "$SAGE_LOCAL/bin/frobby" ]; then
23-
echo "Frobby executable not copied."
24-
exit 1
25-
fi
14+
sdh_install bin/release/frobby "$SAGE_LOCAL/bin"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
rm -f "$SAGE_LOCAL/bin/frobby"

0 commit comments

Comments
 (0)