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...
# Contributor: nisc <firstname.lastname@example.org>
pkgdesc="GUI for the backup tool dar (disk archiver)."
depends=('gtk2' 'dar' 'xterm')
mkdir -p ../../pkg/usr/share/doc/dargui
mkdir -p ../../pkg/usr/share/man/man1
mkdir -p ../../pkg/usr/share/dargui/locales
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/
When pasting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode
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.
Rename the build() function as package(), and don't use "../../", use "$pkgdir" instead.
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)
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