You are not logged in.

#1 2008-01-09 13:23:13

Roberth
Member
From: Norway
Registered: 2007-01-12
Posts: 873

Problem with patches in PKGBUILD

Hello

I've modified the PKGBUILD for evilwm to apply a patch to it. here's the PKGBUILD:

pkgname=evilwm-roberth
pkgver=1.0.0
pkgrel=1
pkgdesc="A minimalist but usable window manager for the X Window System."
arch=('i686' 'x86_64')
conflicts=('evilwm')
provides=('evilwm')
depends=('libxext' 'libxrandr')
url="http://evilwm.sourceforge.net"
source=(http://www.6809.org.uk/evilwm/evilwm-$pkgver.tar.gz
    remove-ctrl.diff)
license=(custom)
md5sums=('aa66a68f54dda48ff3bcef23ea852e59'
     '01f5c61f66a66a63d289a201bdb4ee7c')

build() {
  cd $startdir/src/evilwm-$pkgver
  diff -Np0 -i $startdir/src/remove-ctrl.diff || return 1
  /usr/bin/make || return 1
  /usr/bin/make DESTDIR=$startdir/pkg install
  install -D -m644 README $startdir/pkg/usr/share/licenses/$pkgname/README
}

Here's the output when running makepkg:

[roberth@Magda evilwm-roberth]$ makepkg
==> Entering fakeroot environment
==> Making package: evilwm-roberth 1.0.0-1 (Wed Jan  9 14:21:45 UTC 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
   -> Found evilwm-1.0.0.tar.gz in build dir
   -> Found remove-ctrl.diff in build dir
==> Validating source files with md5sums
    evilwm-1.0.0.tar.gz ... Passed
    remove-ctrl.diff ... Passed
==> Extracting Sources...
   -> tar -xf evilwm-1.0.0.tar.gz
==> Starting build()...
diff: `-0' option is obsolete; omit it
diff: Try `diff --help' for more information.
==> ERROR: Build Failed.  Aborting...

What is wrong?


Use the Source, Luke!

Offline

#2 2008-01-09 13:32:18

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Problem with patches in PKGBUILD

You want to use the 'patch' command, not the 'diff' command.

Offline

#3 2008-01-09 13:33:41

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Problem with patches in PKGBUILD

Edit: stupid comment...  lol

Last edited by Allan (2008-01-09 13:34:16)

Offline

#4 2008-01-09 13:47:21

Roberth
Member
From: Norway
Registered: 2007-01-12
Posts: 873

Re: Problem with patches in PKGBUILD

Thanks.


Use the Source, Luke!

Offline

Board footer

Powered by FluxBB