You are not logged in.

#1 2022-04-06 20:13:13

purpleleaf
Member
Registered: 2022-04-02
Posts: 21

debian source to arch

I've  put on AUR zzzfm-bin https://gitlab.com/skidoo/zzzfm, a fork of spacefm that want update the code that is unmanteined from 2018.
Unfortunately compiling the source produce only debian packages.

I googled and ducked but i found only reference to compile arch packges for  debian.

Can someone please provide me some documentation resources that could help me to convert debian sources to arch?

Offline

#2 2022-04-06 20:15:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: debian source to arch

The source code is available, so why are you making a -bin package at all?  The PKGBUILD should just build it from source.

EDIT: I just confirmed it builds just fine once the correct dependencies are installed.

Last edited by Trilby (2022-04-06 20:28:00)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-04-06 20:22:45

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: debian source to arch

A fork removing all build instructions seems rather questionable...

Anyway debian/control and debian/rules give you the gist on used compilation flags and dependencies. They look the same as those for spacefm.

You can use this as starting point: https://aur.archlinux.org/cgit/aur.git/ … ?h=spacefm prefixing ./autogen.sh to generate ./configure in build(). The patches in prepare() can likely be removed.

edit: this seems a distribution-specific fork (antiX), that explains a thing or two.

Last edited by Alad (2022-04-06 20:26:39)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2022-04-06 20:54:42

purpleleaf
Member
Registered: 2022-04-02
Posts: 21

Re: debian source to arch

There is no configure or make in the sources,  an autogen.sh provided with source configure the source code and create the makefile.
It is possible compile the code, but make install outputs:

LANG=C sudo make install
make: *** No rule to make target 'install'.  Stop.

Offline

#5 2022-04-06 21:03:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: debian source to arch

There would be an install rule if you successfully ran autogen.sh.  I just built and installed it with no errors.  The following PKGBUILD successfully builds a package:

_gitname=zzzfm
pkgname=${_gitname}-git
pkgver=0
pkgrel=1
pkgdesc='Multi-panel tabbed file manager'
arch=(i686 x86_64)
url="https://gitlab.com/skidoo/zzzfm"
license=(GPL3)
depends=(gtk2 ffmpegthumbnailer)
makedepends=(intltool)
source=(git+${url}.git)
sha256sums=(SKIP)

pkgver() {
	echo 0; ## ADD A PKGVER FUNCTION HERE
}

build() {
  cd "${srcdir}/${_gitname}"
  CONFIG_SHELL=/bin/bash ./autogen.sh --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_gitname}"
  make DESTDIR="${pkgdir}" install
}

I had to patch the configure script as it uses /bin/sh but assumes that is bash.  I don't know enough about autotools to fix this 'properly', but - despite being wrong - it would not affect most arch users.  You'd also want to pass options to autogen and / or rerun configure with options if you want a gtk3 build (which would also change the dependencies).  Also see the note, I've left the pkgver function to be filled in - just follow the wiki and see which approach is most suited to this source repo.

edit: added CONFIG_SHELL for bashisms in configure script

edit 2: added --prefix flag to autogen.sh which is needed to override the default of /usr/local

Last edited by Trilby (2022-04-07 01:32:55)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2022-04-06 21:44:33

purpleleaf
Member
Registered: 2022-04-02
Posts: 21

Re: debian source to arch

I repeat all the steps and i also can install the source.
Only the file in etc /xdg are not installed.
I checked the output of make install, and there is no rules for etc/xdg directory
please can you confirm this?
ps
many thanks and forgive my poor skills smile

Offline

#7 2022-04-07 01:39:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: debian source to arch

It doesn't appear that the /etc/xdg files are meant to be distributed - there's an example session file that a user could copy to their home directory, but xxxfm will just create this on first run anways, so it doesn't appear to serve any purpose.

Also note my second edit, autogen.sh needs to be passed the --prefix=/usr flag.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2022-04-07 17:18:30

purpleleaf
Member
Registered: 2022-04-02
Posts: 21

Re: debian source to arch

Thanks Trilby,
I succesfully created the AUR package.
The only think i would know is how to separate the package in zzzfm and zzzfm-common.
I make only the gtk2 version of zzzfm, because the gtk3 one has some bugs.
I hope skidoo could fix these bugs in a near future so it will make possible also build the gtk3 version; in that case i think have a separate common packages should be better.

Offline

#9 2022-04-07 17:53:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: debian source to arch

I'm not familiar with zzzfm or spacefm, but I would suspect there are very few if any users who would want both a gtk2 and gtk3 version at the same time.  So I don't see any purpose in splitting it into three packages; just make one each for gtk2 and gtk3 (when it's ready).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2022-04-07 19:58:30

purpleleaf
Member
Registered: 2022-04-02
Posts: 21

Re: debian source to arch

gtk3 and gtk2 are alternatives. the zzzfm-common package instead is for both the versions.
My purpose is  to avoid including twice the common files in gtk3 and gtk2 version. Not   a big problem i know, on the AUR there are no file, but if something can be optimized i think it should be smile

Offline

Board footer

Powered by FluxBB