You are not logged in.

#1 2025-04-13 03:34:19

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

[SOLVED} Error in the package() part of my PKGBUILD

So when I tried to make a package, I always get a "make: *** No rule to make target 'install'.  Stop." error. My PKGBUILD:

pkgname=xsystem35-sdl2
pkgver=2.14.3
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=('917f73d621f60f6592940ba0eb4a0627bef82d25f53774e5b40a082696527eb6')
prepare () {
        cd "$srcdir/${pkgname}-${pkgver}"
}

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

package() {
  make DESTDIR="${pkgdir}" install
}

The program compiled successfully, so idk what I'm supposed to do next. Pls help

Last edited by okbzl (2025-04-13 08:16:27)

Offline

#2 2025-04-13 07:35:02

mithrial
Member
Registered: 2017-03-05
Posts: 78

Re: [SOLVED} Error in the package() part of my PKGBUILD

I think you need to cd into the correct folder where the Makefile is.

Offline

#3 2025-04-13 08:16:05

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

Re: [SOLVED} Error in the package() part of my PKGBUILD

It worked. Thanks

Offline

Board footer

Powered by FluxBB