You are not logged in.

#1 2019-01-25 11:17:08

VenomGameworld
Member
Registered: 2009-07-12
Posts: 39

[SOLVED] GNOME Niepce doesn't build

Hi,

I've created a PKGBUILD for image editor GNOME Niepce, but at this time it doesn't build because it's unable to find a configure-file in the source directory. I've browsed through the different pages in the Wiki and compared the file with similar PKGBUILDs, but so far without any luck. Does anyone have an idea what might go wrong?

Thanks in advance!

Kind regards!

PKGBUILD:

pkgname=niepce
pkgver=r76742c08
pkgrel=1
pkgdesc='Niepce Digital is a digital photography software'
arch=('x86_64')
url='https://gitlab.gnome.org/GNOME/niepce'
license=('LGPL2.1')
depends=('rust' 'gtk3' 'cairo' 'glibmm' 'gtkmm3'
         'libchamplain' 'sqlite' 'libxml2' 'boost' 'exempi' 'libopenraw'
         'gegl' 'babl' 'libgphoto2' 'libgexiv2')
makedepends=('git' 'intltool')
provides=('niepce')
conflicts=('niepce')
source=('niepce::git+https://gitlab.gnome.org/GNOME/niepce.git')
sha256sums=('SKIP')

build() {
  cd "$srcdir/niepce"
  ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --libexecdir=/usr/lib/$_pkgname

  make
}

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

makepkg fails with following error:

==> Making package: niepce r76742c08-1
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating niepce git repo...
Fetching origin
==> Validating source files with sha256sums...
    niepce ... Skipped
==> Extracting sources...
  -> Creating working copy of niepce git repo...
Reset branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Starting build()...
/home/wesley/Total/new/niepce/PKGBUILD: line 19: ./configure: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by VenomGameworld (2019-01-28 22:15:45)

Offline

#2 2019-01-25 11:27:12

loqs
Member
Registered: 2014-03-06
Posts: 7,913

Re: [SOLVED] GNOME Niepce doesn't build

autoreconf --force --install

Offline

#3 2019-01-25 18:14:19

VenomGameworld
Member
Registered: 2009-07-12
Posts: 39

Re: [SOLVED] GNOME Niepce doesn't build

Thanks!
I've added this command to the prepare-phase of the PKGBUILD and now it builds nicely.

Offline

#4 2019-01-26 00:01:36

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 2,579

Re: [SOLVED] GNOME Niepce doesn't build

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

#5 2019-01-26 12:16:23

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,060

Re: [SOLVED] GNOME Niepce doesn't build

source=('niepce::git+https://gitlab.gnome.org/GNOME/niepce.git')

packages building from git master should append -git to the pkgname and are required to have a pkgver() function .
see https://wiki.archlinux.org/index.php/VC … guidelines


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#6 2019-01-28 22:15:31

VenomGameworld
Member
Registered: 2009-07-12
Posts: 39

Re: [SOLVED] GNOME Niepce doesn't build

Thanks, I will edit it as described in the guidelines.

Offline

Board footer

Powered by FluxBB