You are not logged in.

#1 2013-09-19 13:16:03

hifi25nl
Member
Registered: 2011-05-07
Posts: 220
Website

Dargui PKGBUILD problem

I am trying to update Dargui (gui for dar archiver)  with a new PKGBUILD. I have already made some little modifications but the resulting arch package is empty.
I understand that this PKGBUILD is missing the package function...I have tried a lot of possibilities without a solution. Maybe is something trivial...

Thank you

# Contributor: nisc <rirae@gmx.net>

pkgname=dargui
pkgver=0.7.2
pkgrel=1
pkgdesc="GUI for the backup tool dar (disk archiver)."
arch=('i686' 'x86_64')
url="http://dargui.sourceforge.net/"
license="GPL"
depends=('gtk2' 'dar' 'xterm')
source=("http://downloads.sourceforge.net/$pkgname/${pkgname}-${pkgver}-bin.tar.gz")
md5sums=('7ba48a2c0656434178a13e1e5a0dcaf2')

build() {
  cd $srcdir/$pkgname-$pkgver/

  mkdir -p ../../pkg/usr/share/doc/dargui
  mkdir -p ../../pkg/usr/share/man/man1
  mkdir -p ../../pkg/usr/share/dargui/locales
  mkdir    ../../pkg/usr/share/menu
  mkdir    ../../pkg/usr/share/applications
  mkdir    ../../pkg/usr/share/pixmaps
  mkdir    ../../pkg/usr/bin

  cp -vR doc/* ../../pkg/usr/share/doc/dargui/
  #cp -v doc/copyright ../../pkg/usr/share/doc/dargui/
  cp -v man/dargui.1.gz ../../pkg/usr/share/man/man1/

  cp -v menu/* ../../pkg/usr/share/menu/
  chmod 644 ../../pkg/usr/share/menu/dargui
  cp -v applications/* ../../pkg/usr/share/applications/
  chmod 644 ../../pkg/usr/share/applications/dargui.desktop
  cp -v pixmaps/* ../../pkg/usr/share/pixmaps/

  cp -v scripts/* ../../pkg/usr/share/dargui/
  cp -v darlogger ../../pkg/usr/share/dargui/

  cp -v locales/* ../../pkg/usr/share/dargui/locales/
  cp -v dargui ../../pkg/usr/bin/
}

Offline

#2 2013-09-19 14:17:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: Dargui PKGBUILD problem

When pasting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.


There's also the source package http://sourceforge.net/projects/dargui/ … z/download
If you want to use the precompiled one, I think the package name should be dargui-bin.

Offline

#3 2013-09-19 14:23:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,272

Re: Dargui PKGBUILD problem

Rename the build() function as package(), and don't use "../../", use "$pkgdir" instead.

Some improvements:
Some of the mkdir, cp, and chmod commands could all be consolidated into one install line per file. 'man install' to learn how to use it.
Quote path variables for portability. e.g. "$srcdir/$pkgname-$pkgver/". This way, if there's a space in any of the names, it'll be handled correctly.
The dargui binary is a 32-bit application, and won't work on a x86_64 (at least not as far as I can tell), you should drop x86_64 from the arch array (or include a workaround in the PKGBUILD).

Last edited by WorMzy (2013-09-19 14:26:11)


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#4 2013-09-19 16:22:05

hifi25nl
Member
Registered: 2011-05-07
Posts: 220
Website

Re: Dargui PKGBUILD problem

Thank you very much WorMzy. Now is working. I will wait for some more adjustments before posting.

Offline

Board footer

Powered by FluxBB