You are not logged in.

#1 2004-05-15 14:13:15

Lovechild
Member
From: Århus, Denmark
Registered: 2003-09-24
Posts: 64

Introduction and baby's first package

Hi, My name is David Nielsen and I'm a recent convertee from the Gentoo/Fedora camp - some of you might know me as BreakMyGentoo contributor Lovechild, and as such also the original wanker behind the hugely popular Love-sources kernel patch.

I'm very sorry about not providing binaries, but I currently have no webspace to put them in.

I'm getting to know pacman and abs by packaging MonoDevelop so first dep down IBM's ICU library (extra/lib/icu)

# Maintainer: David Nielsen  <david@nielsen-family.dk>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                                
pkgname=icu
pkgver=2.8
pkgrel=1
pkgdesc="A C and C++ library that provides robust Unicode support on a wide variety of platforms"
source=(ftp://www-126.ibm.com/pub/$pkgname/$pkgver/$pkgname-$pkgver.tgz)
md5sums=('49b5509c111596e958a87f3b17432cdd')
url="http://oss.software.ibm.com/developerworks/opensource/icu/project/"
build() {
cd $startdir/src/$pkgname/source/
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}

adjusted Mono package to have ICU support - I still lack nptl support which is needed to get the mono debugger to work, but that requires some kernel and glibc guru magic so we'll save that for later and live without the debugger till I can talk to the right people about getting nptl support enabled in AL.

# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Brice Carpentier <brice@dlfp.org>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                                
pkgname=mono
pkgver=0.91
pkgrel=2
pkgdesc="free implementation of the .NET including runtime and compiler"
url="http://www.go-mono.com"
depends=('glib2' 'bash' 'icu')
makedepends=('pkgconfig' 'pacman>=2.7.3')
source=(http://www.go-mono.com/archive/beta1/$pkgname-$pkgver.tar.gz mono)
md5sums=('eea86524624bd0e02fb90cec71fd0673' '8315e46c6a6e9625502521fc0ad1a322')
                                                                                
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc --with-nptl=no --with-icu=yes
  make || return 1
  make DESTDIR=$startdir/pkg install
  install -d $startdir/pkg/etc/rc.d
  install -m755 ../mono $startdir/pkg/etc/rc.d
}

gtk-sharp, you will notice that someone brainfarted that makes gtk-sharp check if monodoc is installed, when monodoc requires gtk-sharp - making a nice circular dependency. Hopefully ignoring documentation won't make it blow up in our faces.

# Maintainer: David Nielsen  <david@nielsen-family.dk>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                               
pkgname=gtk-sharp
pkgver=0.91.1
pkgrel=1
pkgdesc="C# bindings for GTK+"
url="http://www.go-mono.com"
depends=('gtk2' 'mono')
makedepends=('pkgconfig' 'pacman>=2.7.3')
source=(http://www.go-mono.com/archive/beta1/$pkgname-$pkgver.tar.gz)
md5sums=('5e4537398dba1e88886f9c0193df4602')
                                                                               
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

monodoc

# Maintainer: David Nielsen  <david@nielsen-family.dk>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                               
pkgname=monodoc
pkgver=0.15
pkgrel=1
pkgdesc="Mono Documentation"
url="http://www.go-mono.com"
depends=('mono' 'gtk-sharp')
makedepends=('pkgconfig' 'pacman>=2.7.3')
source=(http://www.go-mono.com/archive/beta1/$pkgname-$pkgver.tar.gz)
md5sums=('20deb74994d88a17ea75b743bd4b9da2')
                                                                               
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

gtksourceview-sharp. this currently has a conflicting file with the base package gtksourceview

rm /opt/gnome/share/gtksourceview-1.0/language-s'ecs/csharp.lang is the only solution I know of so far but there's sure to be a more elegant way to fix this - I'll see what I can learn from the other builds in abs because it's simply unacceptable.

# Maintainer: David Nielsen  <david@nielsen-family.dk>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                               
pkgname=gtksourceview-sharp
pkgver=0.2
pkgrel=1
pkgdesc="C# bindings for gtksourceview"
url="http://www.go-mono.com"
depends=('gtksourceview' 'mono' 'monodoc')
makedepends=('pkgconfig' 'pacman>=2.7.3')
source=(http://www.go-mono.com/archive/beta1/$pkgname-$pkgver.tar.gz)
md5sums=('0eed28f53e016a53a911933c874c5f4a')
                                                                               
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}
# Maintainer: David Nielsen  <david@nielsen-family.dk>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                               
pkgname=gecko-sharp
pkgver=0.3
pkgrel=1
pkgdesc="C# bindings for gecko"
url="http://www.go-mono.com"
depends=('mozilla'  'mono' 'monodoc')
makedepends=('pkgconfig' 'pacman>=2.7.3')
source=(http://www.go-mono.com/archive/beta1/$pkgname-$pkgver.tar.gz)
md5sums=('f0b00379087803da8faee7c96663b512')
                                                                               
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

MonoDevelop.... finally..

# Maintainer: David Nielsen  <david@nielsen-family.dk>
# Contributor: David Nielsen  <david@nielsen-family.dk>
                                                                               
pkgname=monodevelop
pkgver=0.3
pkgrel=1
pkgdesc="IDE for Mono"
url="http://www.go-mono.com"
depends=('gtksourceview-sharp' 'mono' 'monodoc' 'gecko-sharp')
makedepends=('pkgconfig' 'pacman>=2.7.3')
source=(http://www.go-mono.com/archive/beta1/$pkgname-$pkgver.tar.gz)
md5sums=('340dd8dc110e2384409211b8ed198f68')
                                                                               
#HACK HACK HACK
#the below is so ugly words can't describe it
                                                                               
build() {
  mkdir /opt/gnome/share/mime/
  mkdir /opt/gnome/share/mime/packages
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

to make it run you have to have export MOZILLA_FIVE_HOME=/usr/lib/mozilla/, do we have a default place to "install" such requirements?

Sorry for the ugly ugly hacks


I'm proud to be a a freedomloving infidel piece of treehugging eurotrash.

Offline

#2 2004-05-16 00:51:19

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Introduction and baby's first package

Wow!! You sure you're a newb? wink
Cause I know I am (before and after this post :shock: )
You look like you are on a great start smile
Welcome to Arch linux.

See you around
Ravster

Offline

#3 2004-05-16 03:02:15

Lovechild
Member
From: Århus, Denmark
Registered: 2003-09-24
Posts: 64

Re: Introduction and baby's first package

Nope, I'm not a newbie anymore - but this was my first crack at abs, I have previously worked a lot with Gentoo's Portage and it's mostly just a different syntax (a bit more on the primitive side if you ask me). I kinda miss the epatch functions from ebuild and all those small nice additions, abs seems a bit raw.

I've been on 100% UNIX for nearly 5 years now I think.

I'm currently on FreeBSD but I think the laptop will be Arch Linux since it's such a cute little distro, and a 500MHz Celeron just wasn't meant for compiling an entire OS.


I'm proud to be a a freedomloving infidel piece of treehugging eurotrash.

Offline

#4 2004-05-16 11:21:36

Egil.B
Member
From: Universitas Osloensis
Registered: 2004-02-14
Posts: 116

Re: Introduction and baby's first package

Lovechild is 1337. I remember him from the Gentoo-forums wink. Many Gentoo-converts here. smile
Anyway, maybe you should post in the right forum? tongue

Offline

#5 2004-05-16 11:37:27

Lovechild
Member
From: Århus, Denmark
Registered: 2003-09-24
Posts: 64

Re: Introduction and baby's first package

yeah sorry about that, I mistook the forums - next time I'll read more closely.

oh if someone could help me finish up the scripts so they would work everytime (without the ugly hacks), it would be great to have them in the tree - MonoDevelop is an excellent program.


I'm proud to be a a freedomloving infidel piece of treehugging eurotrash.

Offline

#6 2004-05-16 19:55:45

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Introduction and baby's first package

Gentoo??! That pretty much explains the PKGBUILDs  big_smile

I think the laptop will be Arch Linux since it's such a cute little distro

AAARRGGHH!!  Sacrilege!! tongue

Don't bother, I'm from RedHat, so Arch is a step up :oops:  smile

Offline

#7 2004-05-16 20:06:05

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

Re: Introduction and baby's first package

Lovechild wrote:

to make it run you have to have export MOZILLA_FIVE_HOME=/usr/lib/mozilla/, do we have a default place to "install" such requirements?

Have the PKGBUILD create a shell script /etc/profile.d/monodev.sh (or something) with your export statement in it.  There should be other scripts in the directory you can examine.

Offline

Board footer

Powered by FluxBB