From f9a90e4f8b40e7165f6a3bd42a94fbbe74105c51 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 16 Oct 2018 20:44:58 +0200 Subject: buildconfig: don't overwrite install prefix by default --- linux/.config | 2 +- linux/makepkg/PKGBUILD | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'linux') diff --git a/linux/.config b/linux/.config index eb0fb92..8a84cad 100644 --- a/linux/.config +++ b/linux/.config @@ -17,7 +17,7 @@ CONFIG_CXX_FLAGS_RELEASE="" # # Install paths # -CONFIG_INSTALL_PREFIX="/usr/local" +CONFIG_INSTALL_PREFIX="" CONFIG_INSTALL_BIN="bin" CONFIG_INSTALL_LIB="lib/smolbote" diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD index 240f711..c327b47 100644 --- a/linux/makepkg/PKGBUILD +++ b/linux/makepkg/PKGBUILD @@ -55,14 +55,14 @@ build() { # generate makefile # see doc/Building.asciidoc for list of options cmake -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/local \ + -DCMAKE_INSTALL_PREFIX=/usr/local \ -Dpoi_Version="$_tag" \ -Dpoi_Describe="$pkgver" \ -Dpoi_Build="$_branch:$_commit" \ $srcdir/smolbote # if you want to manually customize the build, you can use ccmake here - ccmake . + #ccmake . # Build make @@ -70,7 +70,7 @@ build() { package() { # Install - make install + DESTDIR="$pkgdir" make install msg2 "Installing icon and .desktop" install -Dm644 $srcdir/smolbote/data/poi.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/poi.svg -- cgit v1.2.1