You are not logged in.

#1 2025-05-29 01:36:11

okbzl
Member
Registered: 2024-08-03
Posts: 41

Make install keeps install into usr/local

So here's my current PKGBUILD for xsystem35-sdl2:

pkgname=xsystem35-sdl2
pkgver=2.15.1
pkgrel=1
pkgdesc="This is a multi-platform port of xsystem35, a free implementation of AliceSoft's System 3.x game engine."
arch=(x86_64)
url="https://github.com/kichikuou/xsystem35-sdl2"
license=('GPL')
depends=(gtk3 cmake sdl2 sdl2_ttf sdl2_mixer libwebp portmidi cjson asciidoctor)
source=(${url}/archive/refs/tags/v${pkgver}.zip)
sha256sums=('3186583c1e978bc06aa7bfb66a3c6eccdfac036958c56bbebfea9d56ffe46da7')
prepare () {
	cd "$srcdir/${pkgname}-${pkgver}"
}

build() {
	cd "$srcdir/${pkgname}-${pkgver}"
	mkdir -p out/debug
	cd out/debug
	cmake -DCMAKE_BUILD_TYPE=Debug ../../
	make
}

package() {
  cd "$srcdir/${pkgname}-${pkgver}/out/debug"
  make DESTDIR="${pkgdir}" install
}

The problem with this is that it keeps install into usr/local. I have no idea how to make it install into normal /usr. If you have any idea, pls do, I tried googling for an answer, no dice

Offline

#2 2025-05-29 01:41:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,834

Re: Make install keeps install into usr/local

Offline

Board footer

Powered by FluxBB