You are not logged in.

#1 2010-05-17 08:34:44

arinlares
Member
From: Anaheim, CA
Registered: 2010-02-01
Posts: 165
Website

[Solved]Klystrack

I've been working on a PKGBUILD for Klystrack with the hope of running it on my netbook (they only provide Windows and Ubuntu installers).

I started first playing around with the .DEB packages to make the PKGBUILD (I took this from a huludesktop PKGBUILD from the AUR as a jumping-off point), and decided instead to go with an SVN BUILDPKG, this time modeling it off of catalyst's Abiword SVN.

So, I manage to download the source and initiate a compile, and even install a package, sort of.  The only issue is there is nothing in the package to install.  So, I come to you guys for help, after fighting this for some hours.  I'll post my PKGBUILD below, and really only want to know what I have wrong, but if you can actually get a working build to me as an example, it would be appreciated.  I looked it up in the Wiki and even installed ABS for the example PKGBUILDs, but they only covered downloading from one repository, not two.

So, the PKGBUILD:

# Contributor: blank... prototype.

pkgname=klystrack
pkgver=1.4.2
pkgrel=1
pkgdesc="A Linux sound tracker comparable to AHX or HivelyTracker"
arch=('i686')
license=('MIT')
url="klystrack.googlecode.com"
depends=('sdl')
makedepends=('subversion' )
optdepends=()
options=('!makeflags' 'force')
provides=('klystrack')
conflicts=('klystrack')
source=()
md5sums=()

_svntrunk1=http://klystrack.googlecode.com/svn/trunk/
_svnmod1=klystrack
_svntrunk2=http://klystron.googlecode.com/svn/trunk/
_svnmod2=klystron

build() {
svn co $_svntrunk1 $_svnmod1 && svn co $_svntrunk2 $_svnmod2
  msg "SVN checkout done or server timeout"
  msg "Starting make..."
cd ${srcdir}/$_svnmod1
make DESTDIR=$/.. || return 1
}

Last edited by arinlares (2010-05-19 22:46:41)

Offline

#2 2010-05-17 09:32:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved]Klystrack

I haven't run this, nor do I intend to, but one thing that jumps out at me immediately is that you're bundling klystron with klystrack, instead of making two packages with a dependency relationship. Also, there is nothing in the package because you haven't put anything in the package i.e. you haven't installed any files in $pkgdir - in fact, your PKGBUILD does not refer to $pkgdir at all.

I'm going to assume you have based this on the svn PKGBUILD template, in which case you should go and have another look at it. If it happens you don't have it, install the abs package and you will find the template in /usr/share/pacman.

Offline

#3 2010-05-17 20:34:05

arinlares
Member
From: Anaheim, CA
Registered: 2010-02-01
Posts: 165
Website

Re: [Solved]Klystrack

I set it to download from both repsitories because that's the only way the program will compile, at least according to the instructions on the site.

Thanks for the help, I ended up using the available DEB file from the site.

Offline

#4 2010-05-17 21:18:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved]Klystrack

OK then - not really [Solved] then, is it? smile

Offline

#5 2010-05-17 23:56:08

arinlares
Member
From: Anaheim, CA
Registered: 2010-02-01
Posts: 165
Website

Re: [Solved]Klystrack

I guess not, as I'm still working on the SVN PKGBUILD.  I messed up and tried the CVS prototype instead of SVN, which made the whole thing more confusing than it should have been.

Current SVN PKGBUILD

Current error:

make[1]: Leaving directory `/home/arin/Downloads/klystrack/src/klystrack'
make: *** No rule to make target `install'.  Stop.

It works great until the make install bit at the bottom, now.  I think it might be a problem with the makefile.

Last edited by arinlares (2010-05-18 01:21:45)

Offline

#6 2017-01-15 20:13:56

rbrt
Member
Registered: 2017-01-15
Posts: 1

Re: [Solved]Klystrack

I have updated for my personal use the PKGBUILD of the chiptune-tracker Klystrack for the latest version (1.7.0) at the moment. I leave the content for users who want to build or maintain it.

Best regards.

pkgname=klystrack
pkgver=1.7.0
pkgrel=1
pkgdesc="A chiptune tracker"
arch=('i686' 'x86_64')
url="https://github.com/kometbomb/klystrack"
license=('MIT')
depends=('sdl2' 'sdl2_image')
makedepends=('git')
source=("git+https://github.com/kometbomb/klystrack.git" "git+https://github.com/kometbomb/klystron.git")
md5sums=('SKIP' 'SKIP')

prepare() {
        cd "${srcdir}/${pkgname}"
	touch "${srcdir}/${pkgname}/src/version.h"
        touch "${srcdir}/klystron/src/version.h"
}

build() {
        cd "${srcdir}/${pkgname}"
	make
}

package() {
	cd "${srcdir}/${pkgname}"
	install -Dm 755 "$srcdir/klystrack/bin.debug/klystrack" "$pkgdir/usr/bin/klystrack"
	install -d "$pkgdir/usr/lib/klystrack/res" "$pkgdir/usr/lib/klystrack/key" "$pkgdir/usr/lib/klystrack/examples" "$pkgdir/usr/share/doc/klystrack"
        install -m 644 $srcdir/klystrack/res/* "$pkgdir/usr/lib/klystrack/res/"
        install -m 644 $srcdir/klystrack/key/* "$pkgdir/usr/lib/klystrack/key/"
	install -m 644 $srcdir/klystrack/doc/* "$pkgdir/usr/share/doc/klystrack/"
        cp -r $srcdir/klystrack/examples/* "$pkgdir/usr/lib/klystrack/examples/"

	touch $srcdir/klystrack/klystrack.desktop
	echo "[Desktop Entry]" >> $srcdir/klystrack/klystrack.desktop
	echo "Name=Klystrack" >> $srcdir/klystrack/klystrack.desktop
	echo "Exec=klystrack" >> $srcdir/klystrack/klystrack.desktop
	echo "Icon=klystrack" >> $srcdir/klystrack/klystrack.desktop
	echo "Terminal=false" >> $srcdir/klystrack/klystrack.desktop
	echo "Type=Application" >> $srcdir/klystrack/klystrack.desktop
	echo "Categories=Music;" >> $srcdir/klystrack/klystrack.desktop
	echo "Comment=A chiptune tracker" >> $srcdir/klystrack/klystrack.desktop
	install -Dm 644 "$srcdir/klystrack/klystrack.desktop" "$pkgdir/usr/share/applications/klystrack.desktop"
	install -Dm 644 "$srcdir/klystrack/icon/256x256.png" "$pkgdir/usr/share/icons/klystrack.png"
}

Last edited by rbrt (2017-01-15 20:14:51)

Offline

#7 2017-01-15 20:37:48

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [Solved]Klystrack

Thank you for doing that, but did you really need to resurrect a seven year old thread in the process?

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB