You are not logged in.
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/bincp -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
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
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: 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
Thank you very much WorMzy. Now is working. I will wait for some more adjustments before posting.
Offline