Skip to content
Snippets Groups Projects
Commit 24673551 authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/sxhkd: set prefix as arg instead of using sed

parent f26a8f70
No related branches found
No related tags found
No related merge requests found
...@@ -23,20 +23,16 @@ prepare() { ...@@ -23,20 +23,16 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac esac
done done
# Fix $PREFIX
cd "$_builddir"
sed -i 's#^PREFIX.*#PREFIX ?= /usr#' Makefile
} }
build() { build() {
cd "$_builddir" cd "$_builddir"
make make PREFIX=/usr
} }
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
# Copy examples # Copy examples
mkdir "$pkgdir"/usr/share/$pkgname mkdir "$pkgdir"/usr/share/$pkgname
cp -r examples "$pkgdir"/usr/share/$pkgname cp -r examples "$pkgdir"/usr/share/$pkgname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment