You are not logged in.

#1 2006-10-18 14:46:25

dedhart
Member
Registered: 2006-07-02
Posts: 123

Wmsmixer (my first PKGBUILD)

Ok here is my PKGBUILD, please let me know if theres anything I need to change and if you like it perhaps it can go in the AUR.

# Contributer: dedhart [dedinvegas@yahoo.com]

pkgname=wmsmixer
pkgver=0.5.1
pkgrel=1
pkgdesc="a hack to wmmixer which makes some changes to the display"
url="http://freshmeat.net/projects/wmsmixer/"
makedepends=('imake')
source=(http://www.hibernaculum.net/download/$pkgname-$pkgver.tar.gz)
md5sums=('41d64b4a79756ded25ddb614d574114b')

build() {
  cd $startdir/src/$pkgname-$pkgver
  xmkmf --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

Offline

#2 2006-10-18 15:02:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Wmsmixer (my first PKGBUILD)

You're missing the url= field, and the # Contributor line at the top. Otherwise, you're good to go.

Offline

#3 2006-10-18 15:12:43

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: Wmsmixer (my first PKGBUILD)

edited, that better?

Offline

#4 2006-10-18 19:16:47

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Wmsmixer (my first PKGBUILD)

imake should be a  a makedepends. There's probably some missing depends. Did you ran namcap on the PKGBUILD and package?

Offline

#5 2006-10-19 02:29:16

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: Wmsmixer (my first PKGBUILD)

Thx, there are no dependancies listed and afaik the only dependancies are alsa support & I imagine alsa-utils, though it might possibly work w/old OSS drivers too (not sure) I'm not sure how makedepends works, but it makes sense since imake really isn't a dependancy. Never heard of namcap before but tried it and it gave me this:
PKGBUILD (wmsmixer)  W: Missing Maintainer tag
PKGBUILD (wmsmixer)  W: Missing CVS Id tag
Is there a how to for this?

Offline

#6 2006-10-19 08:30:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Wmsmixer (my first PKGBUILD)

Those maintainer and cvs id settings seem to be only relevant for packages in official repos, not for aur.

aside from running namcap on the pkgbuild, also run it on the pkg.tar.gz file as this will find more run-time dependencies.

The wiki has some information on namcap , and offcourse there's always the man-page.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2006-10-19 09:56:17

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: Wmsmixer (my first PKGBUILD)

Well thanks for the info, namcap doesn't give me anything but when I tried it, it did give me some errors about no rules for man pages, but eventualy I just got it to work, so I'm not sure if theres anything else I should add to the pkgbuild.

Also is there a trick to submitting a pkgbuild cause I keep getting this

Could not create directory /home/aur/unsupported/wmsmixer/wmsmixer.

Offline

#8 2006-10-19 11:48:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Wmsmixer (my first PKGBUILD)

I submitted a new package yesterday without trouble and a new version for one of my exisiting packages just now without problems .

Try again, maybe it's a temporary glitch.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2006-10-19 15:48:13

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: Wmsmixer (my first PKGBUILD)

Well I tried last night, this morning and just now, doesn't seem like a temporary glitch, created archive w/ xarchiver if it makes any difference.

Offline

#10 2006-10-19 20:31:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Wmsmixer (my first PKGBUILD)

I just did a quick test with a fake PKGBUILD and could submit it without problems. (I've deleted it from aur so it doesn't hurt anyone).

something must be wrong with the file you created.

From AUR_User_Guidelines#Submitting_Packages_to_UNSUPPORTED

After logging in to the AUR web interface, a user can submit a tarball (tar.gz) of a directory containing build files for a package. The directory inside the tarball should contain a PKGBUILD, any .install files, patches, etc (ABSOLUTELY no binaries).

I use the pack command from within Krusader (a filemanager for KDE) to create such files, but xarchiver should have no problems doing the same.

Try again, and if it still doesn't  work, just post the complete PKGBUILD here  and i'll submit it for you and then orphan it so you can adopt it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#11 2007-03-11 15:17:06

Master One
Member
From: Europe
Registered: 2007-01-21
Posts: 249

Re: Wmsmixer (my first PKGBUILD)

Something is wrong with this. xmkmf does not accept the parameter "--prefix=/usr", when I try to build that package with this, I get the following:

==> Starting build()...
usage:  /usr/bin/xmkmf [-a] [top_of_sources_pathname [current_directory]]
c++ -O2 -fno-strength-reduce    -I/usr/X11R6/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE          -c -o wmsmixer.o wmsmixer.cc
rm -f wmsmixer
gcc -o wmsmixer -O2 -fno-strength-reduce      -L/usr/X11R6/lib wmsmixer.o -lXpm -lXext -lX11
wmsmixer.o: In function `main':
wmsmixer.cc:(.text+0x230e): undefined reference to `operator new(unsigned int)'
wmsmixer.cc:(.text+0x24c8): undefined reference to `operator delete(void*)'
wmsmixer.cc:(.text+0x2921): undefined reference to `operator delete(void*)'
wmsmixer.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [wmsmixer] Error 1
==> ERROR: Build Failed.  Aborting...

When I remove that parameter from the PKGBUILD, I get the following:

==> Starting build()...
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
c++ -m32 -O2 -fno-strength-reduce -fno-strict-aliasing    -I/usr/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                                 -D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                        -c -o wmsmixer.o wmsmixer.cc
rm -f wmsmixer
c++ -m32 -o wmsmixer -O2 -fno-strength-reduce -fno-strict-aliasing      -L/usr/lib   wmsmixer.o -lXpm -lXext -lX11
make: *** No rule to make target `wmsmixer.man', needed by `wmsmixer._man'.  Stop.
==> ERROR: Build Failed.  Aborting...

So what's missing here?

Offline

#12 2007-03-11 19:58:55

nadavvin
Member
Registered: 2006-11-29
Posts: 105

Re: Wmsmixer (my first PKGBUILD)

"So what's missing here?"

The problem is that the "prefix" here:
"make prefix=$startdir/pkg/usr install"

is not formal and standard for all the package.

There also DSESTDIR and many over options.

you need to look at the MAKEFILE which parameter to use.

If you can't find, you can post the Makefile here:
http://pastebin.archlinux.org/

and we try to find.

Last edited by nadavvin (2007-03-11 20:01:39)

Offline

#13 2007-03-11 20:20:55

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Wmsmixer (my first PKGBUILD)

Actually, the problem here is that the source tarball doesn't contain the man page or a template to generate it. As it's a simple app, it's easier to  directly compile/install without makefile than patching Makefile.  Post a comment in AUR so the maintainer knows about that.

pkgname=wmsmixer
pkgver=0.5.1
pkgrel=1
pkgdesc="a hack to wmmixer which makes some changes to the display"
arch=('i686')
url="http://freshmeat.net/projects/wmsmixer/"
license="GPL"
depends=('gcc' 'libxpm')
makedepends=('imake')
source=(http://www.hibernaculum.net/download/$pkgname-$pkgver.tar.gz)
md5sums=('41d64b4a79756ded25ddb614d574114b')

build() {
  cd $startdir/src/$pkgname-$pkgver
  c++ -m32 -o wmsmixer -O2 -fno-strength-reduce -fno-strict-aliasing  -L/usr/lib   wmsmixer.o -lXpm -lXext -lX11  || return 1
  install -D -m755 wmsmixer $startdir/pkg/usr/bin/wmsmixer
  install -D -m644 home.wmsmixer $startdir/pkg/etc/wmsmixer.sample
}

Offline

Board footer

Powered by FluxBB