You are not logged in.

#1 2004-12-22 17:02:56

Notze
Member
From: Germany
Registered: 2004-12-22
Posts: 46

Problems writing a PKGBUILD script for scizzor

I wanted to make a package of scizzor (for bmp) ( http://scizzor.sourceforge.net )
But i have kind a problem with the install process.
In my opinion the install.pl script sucks hard.. now i have a problem.
The library generated during the make process should be placed in ~/.bmp/Plugins
Now i don't now how to write this in the PKGBUILD script.
Here my PKGBUILD so far:

pkgname=scizzor
pkgver=1.3.3
pkgrel=1
pkgdesc="Beep Media Player and XMMS effect plugin for pitchspeed control."
url="http://scizzor.sourceforge.net"
depends=('bmp')
conflicts=()
source=(http://belnet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f9c56fb0640e0e825c922472e5799be9')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make bmp || return 1
  # here the problem start
}

Perhaps someone has an idea...
I hope someone will understand my problem.. my english is not the best smile

greets

Offline

#2 2004-12-22 17:33:11

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,745

Re: Problems writing a PKGBUILD script for scizzor

cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install

why not try that ......

HTH


Mr Green

Offline

#3 2004-12-22 17:51:25

Notze
Member
From: Germany
Registered: 2004-12-22
Posts: 46

Re: Problems writing a PKGBUILD script for scizzor

Mr Green wrote:
cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install

why not try that ......

HTH

scizzor doesn't come with a configure script.
And the make install executes a perl script which installs the plugin directly.

Notze

Offline

#4 2004-12-22 19:13:57

Notze
Member
From: Germany
Registered: 2004-12-22
Posts: 46

Re: Problems writing a PKGBUILD script for scizzor

Hi there,

now i have the PKGBUILD script written but it is very dirty.
I hate packages which don't provide a good Makefile or a configure script.
But.. doesn't matter, here is the result
PKGBUILD

pkgname=scizzor
pkgver=1.3.3
pkgrel=1
pkgdesc="Beep Media Player effect plugin for pitchspeed control."
url="http://scizzor.sourceforge.net"
depends=('bmp')
conflicts=()
source=(http://belnet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f9c56fb0640e0e825c922472e5799be9')

build() {
  cd $startdir/src/$pkgname
  /usr/bin/patch -p1 < $startdir/beep-patch-1.3.3
  make bmp || return 1
  # because the make install of scizzor suckz hard 
  mkdir $startdir/pkg/usr
  mkdir $startdir/pkg/usr/lib
  mkdir $startdir/pkg/usr/lib/bmp
  mkdir $startdir/pkg/usr/lib/bmp/Effect
  cp scizzor-bmp.so $startdir/pkg`beep-config --plugin-dir`/Effect/
}

I have also put the package on ftp.archlinux.org/incoming

mfg[/b]

Offline

#5 2004-12-22 21:34:17

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,745

Re: Problems writing a PKGBUILD script for scizzor

:oops:  sorry ...

too lazy to load it up ....  roll

Welcome to Arch


Mr Green

Offline

#6 2004-12-22 21:49:02

Notze
Member
From: Germany
Registered: 2004-12-22
Posts: 46

Re: Problems writing a PKGBUILD script for scizzor

Mr Green wrote:

:oops:  sorry ...

too lazy to load it up ....  roll

Welcome to Arch

hehe no problem
and thank you smile

Notze

Offline

#7 2004-12-22 21:54:45

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: Problems writing a PKGBUILD script for scizzor

You should be able to replace the mkdirs and cp with:

install -D scizzor-bmp.so $startdir/pkg`beep-config --plugin-dir`/Effect/

See the install manpage.  See "mkdir -p" too.

Offline

#8 2004-12-22 22:10:59

Notze
Member
From: Germany
Registered: 2004-12-22
Posts: 46

Re: Problems writing a PKGBUILD script for scizzor

kpiche wrote:

You should be able to replace the mkdirs and cp with:

install -D scizzor-bmp.so $startdir/pkg`beep-config --plugin-dir`/Effect/

See the install manpage.  See "mkdir -p" too.

Hi,

thank you smile
I am totally new to this package creating business :-)
Here the updated PKGBUILD script...
btw: Can i somehow change the package i had put on ftp.archlinux.org/incoming?

PKGBUILD

# Contributor: Daniel Martin <notze@gmx.net>
pkgname=scizzor
pkgver=1.3.3
pkgrel=1
pkgdesc="Beep Media Player effect plugin for pitchspeed control."
url="http://scizzor.sourceforge.net"
depends=('bmp')
conflicts=()
source=(http://belnet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('f9c56fb0640e0e825c922472e5799be9')

build() {
  cd $startdir/src/$pkgname
  /usr/bin/patch -p1 < $startdir/beep-patch-1.3.3
  make bmp || return 1
  #### thanks to kapiche who helped me with the next part
  install -D scizzor-bmp.so $startdir/pkg`beep-config --plugin-dir`/Effect
}

Offline

Board footer

Powered by FluxBB