From: Bernhard Urban Date: Sat, 4 Dec 2010 23:46:27 +0000 (+0100) Subject: so far for ppc X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=archlinuxppc.git;a=commitdiff_plain;h=0850412dee34fa3cb14736d1280894e20f4e57e9 so far for ppc --- diff --git a/.gitignore b/.gitignore index 9881fec..2a159c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +*/pkg +*/src *.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cdb842c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Ismael Carnales +# Contributor: TDY +# Contributor: Michael S. Walker + +pkgname=ack-git +pkgver=20101202 +pkgrel=1 +pkgdesc="A Perl-based grep replacement, aimed at programmers with large trees of heterogeneous source code" +arch=('any') +url="http://betterthangrep.com/" +license=('GPL' 'PerlArtistic') +depends=('perl-file-next') +makedepends=('git') +provides=('ack') +conflicts=('ack') +options=('!emptydirs') + +_gitroot=git://github.com/petdance/ack.git +_gitname=ack + +build() { + cd $srcdir + + msg "Connecting to git.freedesktop.org GIT server...." + + if [ -d $startdir/src/$_gitname ] ; then + cd $_gitname && git-pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + + msg "GIT checkout done or server timeout" + + cd "$srcdir/$_gitname" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete +} diff --git a/ack/PKGBUILD b/ack/PKGBUILD new file mode 100644 index 0000000..cdb842c --- /dev/null +++ b/ack/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Ismael Carnales +# Contributor: TDY +# Contributor: Michael S. Walker + +pkgname=ack-git +pkgver=20101202 +pkgrel=1 +pkgdesc="A Perl-based grep replacement, aimed at programmers with large trees of heterogeneous source code" +arch=('any') +url="http://betterthangrep.com/" +license=('GPL' 'PerlArtistic') +depends=('perl-file-next') +makedepends=('git') +provides=('ack') +conflicts=('ack') +options=('!emptydirs') + +_gitroot=git://github.com/petdance/ack.git +_gitname=ack + +build() { + cd $srcdir + + msg "Connecting to git.freedesktop.org GIT server...." + + if [ -d $startdir/src/$_gitname ] ; then + cd $_gitname && git-pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + + msg "GIT checkout done or server timeout" + + cd "$srcdir/$_gitname" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete +} diff --git a/deb2targz/COPYING b/deb2targz/COPYING new file mode 100644 index 0000000..918ae90 --- /dev/null +++ b/deb2targz/COPYING @@ -0,0 +1,25 @@ +This is a generic place holder for a class of licenses that boil down to do +no guarantees and all you get is what you have. The language is usually +similar to: + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, provided + that the above copyright notice appears in all copies and that both the + copyright notice and this permission notice appear in supporting + documentation, and that the same name not be used in advertising or + publicity pertaining to distribution of the software without specific, + written prior permission. We make no representations about the + suitability this software for any purpose. It is provided "as is" + without express or implied warranty. + + +You will need to check the license that came with the software for the exact +specifics. Generally you are free to do most anything you want with "as is" +software but you should not take this license as legal advice. + +Note: Most all license have an "as is" clause. For our purposes this does +not make all software in this category. This category is for software with +very little restrictions. + +The information in this license about licenses is presented "as is". :-P + diff --git a/deb2targz/PKGBUILD b/deb2targz/PKGBUILD new file mode 100644 index 0000000..519e85d --- /dev/null +++ b/deb2targz/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Douglas Soares de Andrade +# Contributor: Jason Erik Jackson + +pkgname=deb2targz +pkgver=1 +pkgrel=2 +pkgdesc="Converts .deb archives to tar.gz" +arch=('any') +license=('custom') +url="http://www.miketaylor.org.uk/tech/deb/" +depends=("perl") +source=("http://www.miketaylor.org.uk/tech/deb/$pkgname" "COPYING") +md5sums=('5b944785778d023a43e33af53bea2056' 'dca32f6f6096435ad67b537d830810c6') + +build() { + install -Dm755 $startdir/src/$pkgname $startdir/pkg/usr/bin/$pkgname + install -Dm644 $startdir/src/COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING +} + + diff --git a/deb2targz/deb2targz b/deb2targz/deb2targz new file mode 100644 index 0000000..4697c29 --- /dev/null +++ b/deb2targz/deb2targz @@ -0,0 +1,68 @@ +#!/usr/bin/perl -w +# $Id: deb2targz,v 1.1 2002/12/17 11:57:54 mike Exp $ + +# deb2targz - convert a Debian Linux .deb file to a .tar.gz +# +# This is a hack based only on my eyeball inspection of a single .deb +# file (scottfree_1.14-5_i386.deb) and not on a deep understanding of +# the format. However, so far as I can tell, here's how it works: +# +# First line -- file header: "!" or similar +# Multiple blocks -- each one, a header line followed by data +# Header line -- +# Data -- bytes of data +# We want the block called "data.tar.gz" +# +# This naive algorithm seems to work on the other .deb files that I've +# tested it on, so I'm happy enough with it: +# libapache-reload-perl_0.07-1_all.deb +# libogg0_1.0.0-1_i386.deb +# abiword_1.0.2+cvs.2002.06.05-1_i386.deb + +use strict; +use IO::File; + +$0 =~ s@.*/@@; +if (@ARGV == 0) { + print STDERR "Usage: $0 [ ...]\n"; + exit(1); +} + +FILE: foreach my $filename (@ARGV) { + if ($filename !~ /\.deb$/) { + print "$0: ignoring '$filename' (not a .deb)\n"; + next; + } + + print "$0: converting '$filename' ...\n"; + my $fh = new IO::File("<$filename") + or die "$0: can't read '$filename': $!"; + + <$fh>; # discard file-header line + my $data = join('', <$fh>); + $fh->close(); + + while ($data) { + my $header; + ($header, $data) = ($data =~ /(.*?)\n(.*)/s); + my($name, $num1, $num2, $num3, $num4, $len) = split /\s+/, $header; + #print "header='$header'\n\tname='$name', len=$len\n"; + if ($name eq "data.tar.gz") { + # Found it + $data = substr($data, 0, $len); + $filename =~ s/\.deb$/.tar.gz/; + my $fh = new IO::File(">$filename") + or die "can't write '$filename': $!"; + print $fh $data; + $fh->close(); + print "$0: wrote '$filename'\n"; + next FILE; + } + + print "$0: skipping section '$name'\n"; + if (substr($data, $len, 1) eq "\n") { + $len++; + } + $data = substr($data, $len); + } +} diff --git a/ghc/PKGBUILD b/ghc/PKGBUILD new file mode 100644 index 0000000..0b6daa1 --- /dev/null +++ b/ghc/PKGBUILD @@ -0,0 +1,71 @@ +# $Id: PKGBUILD 87335 2010-08-12 12:32:29Z vesa $ +# Maintainer: Vesa Kaihlavirta +pkgname=ghc +pkgver=6.12.3 +pkgrel=1 +pkgdesc="The Glasgow Haskell Compiler" +arch=(i686 x86_64 ppc) +url="http://www.haskell.org/ghc/" +license=("custom") +depends=('perl' 'gmp>=5.0' gcc) +makedepends=(perl) +provides=("haskell-array=0.3.0.1" + "haskell-bytestring=0.9.1.7" + "haskell-cabal=1.8.0.6" + "haskell-containers=0.3.0.0" + "haskell-directory=1.0.1.1" + "haskell-extensible-exceptions=0.1.1.1" + "haskell-filepath=1.1.0.4" + "haskell-haskell98=1.0.1.1" + "haskell-hpc=0.5.0.5" + "haskell-old-locale=1.0.0.2" + "haskell-old-time=1.0.0.5" + "haskell-pretty=1.0.1.1" + "haskell-process=1.0.1.3" + "haskell-random=1.0.0.2" + "haskell-syb=0.1.0.2" + "haskell-template-haskell=2.4.0.1" + "haskell-time=1.1.4" + "haskell-unix=2.4.0.2" + "haddock=2.6.0" + ) +replaces=("haskell-array<0.3.0.1" + "haskell-bytestring<0.9.1.7" + "haskell-cabal<1.8.0.6" + "haskell-containers<0.3.0.0" + "haskell-directory<1.0.1.1" + "haskell-extensible-exceptions<0.1.1.1" + "haskell-filepath<1.1.0.4" + "haskell-haskell98<1.0.1.1" + "haskell-hpc<0.5.0.5" + "haskell-old-locale<1.0.0.2" + "haskell-old-time<1.0.0.5" + "haskell-pretty<1.0.1.1" + "haskell-process<1.0.1.3" + "haskell-random<1.0.0.2" + "haskell-syb<0.1.0.2" + "haskell-template-haskell<2.4.0.1" + "haskell-time<1.1.4" + "haskell-unix<2.4.0.2" + "haddock<2.6.0" + ) + +backup=(usr/lib/ghc-6.12.3/package.conf) +install=ghc.install + +source=("http://darcs.haskell.org/download/dist/$pkgver/$pkgname-$pkgver-src.tar.bz2" \ + build.mk) + +build() { + cd $srcdir/$pkgname-$pkgver + + cp $srcdir/build.mk mk/build.mk + + ./configure --prefix=/usr + make -j1 || return 1 + make DESTDIR=$pkgdir install + + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/ghc/license +} +md5sums=('4c2663c2eff833d7b9f39ef770eefbd6' + '5a3e0880c80b1dcecf779ff2e63a9c0d') diff --git a/ghc/build.mk b/ghc/build.mk new file mode 100644 index 0000000..f918a0f --- /dev/null +++ b/ghc/build.mk @@ -0,0 +1,150 @@ +# ----------------------------------------------------------------------------- +# A Sample build.mk +# +# Uncomment one of the following BuildFlavour settings to get the desired +# overall build type, and then tweak the options in the relevant section +# below. + +# Uncomment one of these to select a build profile below: + +# Full build with max optimisation (slow build) +BuildFlavour = perf + +# Fastest build (libs unoptimised): +#BuildFlavour = quickest + +# Fast build with optimised libraries: +#BuildFlavour = quick + +# Profile the stage2 compiler: +#BuildFlavour = prof + +# A development build, working on the stage 1 compiler: +#BuildFlavour = devel1 + +# A development build, working on the stage 2 compiler: +#BuildFlavour = devel2 + +GhcLibWays = v + +# -------- 1. A Performance/Distribution build-------------------------------- + +ifeq "$(BuildFlavour)" "perf" + +# perf matches the default settings, repeated here for comparison: + +SRC_HC_OPTS = -O -H64m +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O2 -fasm +GhcHcOpts = -Rghc-timing +GhcLibHcOpts = -O2 -XGenerics +GhcLibWays += p + +ifeq "$(PlatformSupportsSharedLibs)" "YES" +GhcLibWays += dyn +endif + +endif + +# -------- A Fast build ------------------------------------------------------ + +ifeq "$(BuildFlavour)" "quickest" + +SRC_HC_OPTS = -H64m -O0 -fasm +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O0 -fasm +GhcLibHcOpts = -O0 -fasm +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_DOCBOOK_HTML = NO +BUILD_DOCBOOK_PS = NO +BUILD_DOCBOOK_PDF = NO + +endif + +# -------- A Fast build with optimised libs ---------------------------------- + +ifeq "$(BuildFlavour)" "quick" + +SRC_HC_OPTS = -H64m -O0 -fasm +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O0 -fasm +GhcLibHcOpts = -O -fasm +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_DOCBOOK_HTML = NO +BUILD_DOCBOOK_PS = NO +BUILD_DOCBOOK_PDF = NO + +endif + +# -------- Profile the stage2 compiler --------------------------------------- + +ifeq "$(BuildFlavour)" "prof" + +SRC_HC_OPTS = -H64m -O0 -fasm +GhcStage1HcOpts = -O -fasm +GhcStage2HcOpts = -O -fasm +GhcLibHcOpts = -O -fasm + +GhcLibWays += p +GhcProfiled = YES + +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_DOCBOOK_HTML = NO +BUILD_DOCBOOK_PS = NO +BUILD_DOCBOOK_PDF = NO + +endif + + +# -------- A Development build (stage 1) ------------------------------------- + +ifeq "$(BuildFlavour)" "devel1" + +SRC_HC_OPTS = -H64m -O -fasm +GhcLibHcOpts = -O -dcore-lint +GhcStage1HcOpts = -Rghc-timing -O0 -DDEBUG +GhcStage2HcOpts = -Rghc-timing -O -fasm +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_DOCBOOK_HTML = NO +BUILD_DOCBOOK_PS = NO +BUILD_DOCBOOK_PDF = NO + +endif + +# -------- A Development build (stage 2) ------------------------------------- + +ifeq "$(BuildFlavour)" "devel2" + +SRC_HC_OPTS = -H64m -O -fasm +GhcLibHcOpts = -O -dcore-lint +GhcStage1HcOpts = -Rghc-timing -O -fasm +GhcStage2HcOpts = -Rghc-timing -O0 -DDEBUG +SplitObjs = NO +HADDOCK_DOCS = NO +BUILD_DOCBOOK_HTML = NO +BUILD_DOCBOOK_PS = NO +BUILD_DOCBOOK_PDF = NO + +endif + +# ----------------------------------------------------------------------------- +# Other settings that might be useful + +# profiled RTS +#GhcRtsCcOpts = -pg -g + +# Optimised/profiled RTS +#GhcRtsCcOpts = -O2 -pg + +#GhcRtsWithFrontPanel = YES +#SRC_HC_OPTS += `gtk-config --libs` + +# NoFib settings +NoFibWays = +STRIP=: + + diff --git a/ghc/ghc.install b/ghc/ghc.install new file mode 100644 index 0000000..31c97d6 --- /dev/null +++ b/ghc/ghc.install @@ -0,0 +1,22 @@ +pkgname=ghc + +pre_upgrade() { + cat << EOF + ==> Unregistering cabalized packages... +EOF + cd /usr/share/haskell/ && (for a in *; do ghc-pkg unregister --force $a &> /dev/null; done; cd - > /dev/null ) + cat << EOF + ==> Done. +EOF + +} + +post_upgrade() { + cat << EOF + ==> All cabalized and yaourt-installed packages need to be reinstalled now. + ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages. +EOF +} + +op=$1 +shift diff --git a/happy/PKGBUILD b/happy/PKGBUILD new file mode 100644 index 0000000..d537f8a --- /dev/null +++ b/happy/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 88454 2010-08-23 18:41:57Z vesa $ +# Maintainer: simo +# Contributor: Vesa Kaihlavirta + +pkgname=happy +pkgver=1.18.5 +pkgrel=1 +pkgdesc="The Parser Generator for Haskell" +url="http://www.haskell.org/happy/" +arch=('i686' 'x86_64' 'ppc') +license=("custom:BSD3") +depends=(gmp) +makedepends=(ghc haskell-mtl) +options=(strip) +source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) + + +build() { + cd $startdir/src/${pkgname}-${pkgver} + + runhaskell Setup.lhs configure --prefix=/usr || return 1 + runhaskell Setup.lhs build || return 1 + runhaskell Setup.lhs copy --destdir=$startdir/pkg || return 1 + + install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE +} +md5sums=('9e77b67df7b6a4d7273383cc890f39e8') diff --git a/haskell-mtl/PKGBUILD b/haskell-mtl/PKGBUILD new file mode 100644 index 0000000..90e726b --- /dev/null +++ b/haskell-mtl/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Vesa Kaihlavirta +# Contributor: Arch Haskell Team +# Package generated by cabal2arch 0.7.5 +pkgname=haskell-mtl +pkgver=1.1.0.2 +pkgrel=5 +pkgdesc="Monad transformer library" +url="http://hackage.haskell.org/package/mtl" +license=('custom:BSD3') +arch=('i686' 'x86_64' 'ppc') +depends=(sh) +options=('strip') +source=(http://hackage.haskell.org/packages/archive/mtl/$pkgver/mtl-$pkgver.tar.gz) +install=haskell-mtl.install +md5sums=('1e933bb7abb38b7bb423929ba37219db') + +build() { + cd $srcdir/mtl-$pkgver + ghc --make Setup.hs + ./Setup configure --prefix=/usr -p --enable-split-objs --enable-shared --docdir=/usr/share/doc/${pkgname} + ./Setup build + ./Setup haddock + ./Setup register --gen-script + ./Setup unregister --gen-script +} + +package() { + cd ${srcdir}/mtl-1.1.0.2 + install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh + install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/mtl + runhaskell Setup copy --destdir=$pkgdir + install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/haskell-mtl/haskell-mtl.install b/haskell-mtl/haskell-mtl.install new file mode 100644 index 0000000..60659a7 --- /dev/null +++ b/haskell-mtl/haskell-mtl.install @@ -0,0 +1,21 @@ +HS_DIR=/usr/share/haskell/haskell-mtl +post_install() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +op=$1 +shift +$op $* diff --git a/haskell-utf8-string/PKGBUILD b/haskell-utf8-string/PKGBUILD new file mode 100644 index 0000000..823ea81 --- /dev/null +++ b/haskell-utf8-string/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Vesa Kaihlavirta +# Contributor: Arch Haskell Team +# Package generated by cabal2arch 0.7.6 +pkgname=haskell-utf8-string +pkgver=0.3.6 +pkgrel=5 +pkgdesc="Support for reading and writing UTF8 Strings" +url="http://hackage.haskell.org/package/utf8-string" +license=('custom:BSD3') +arch=('i686' 'x86_64' 'ppc') +depends=('ghc=6.12.3' sh) +options=('strip') +source=(http://hackage.haskell.org/packages/archive/utf8-string/${pkgver}/utf8-string-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('be8c5ef52a0824babdc89d60c1e9b600') + +build() { + cd ${srcdir}/utf8-string-$pkgver + ghc --make Setup.lhs + ./Setup configure -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname} + ./Setup build + ./Setup haddock + ./Setup register --gen-script + ./Setup unregister --gen-script +} + +package() { + cd ${srcdir}/utf8-string-$pkgver + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/utf8-string + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} diff --git a/haskell-utf8-string/haskell-utf8-string.install b/haskell-utf8-string/haskell-utf8-string.install new file mode 100644 index 0000000..0ec23d5 --- /dev/null +++ b/haskell-utf8-string/haskell-utf8-string.install @@ -0,0 +1,21 @@ +HS_DIR=/usr/share/haskell/haskell-utf8-string +post_install() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +op=$1 +shift +$op $* diff --git a/haskell-x11/PKGBUILD b/haskell-x11/PKGBUILD new file mode 100644 index 0000000..863316d --- /dev/null +++ b/haskell-x11/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 33071 2010-11-22 11:15:13Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: shild +# Maintainer: Vesa Kaihlavirta + +pkgname=haskell-x11 +pkgver=1.5.0.0 +pkgrel=5 +pkgdesc="A Haskell binding to the X11 graphics library." +arch=(i686 x86_64) +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11" +license=('BSD') +options=('strip' 'force') +conflicts=(haskell-x11-extras) +install=hsmod.install +source=(http://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz) +md5sums=('ec6670f5ce1812206903c8a0fd9df04c') + +build() { + _ghcver=`pacman -Q ghc | cut -d\ -f 2 | cut -f 1 -d -` + depends=("ghc=${_ghcver}" 'libx11') + + cd $srcdir/X11-$pkgver + + runhaskell Setup.hs configure --ghc --prefix=/usr \ + --libsubdir=\$compiler/site-local/\$pkgid + + runhaskell Setup.hs build + runhaskell Setup haddock + + runhaskell Setup.hs register --gen-script + runhaskell Setup.hs unregister --gen-script + sed -i 's/ghc-pkg unregister/ghc-pkg unregister --force/' unregister.sh + + install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh + install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh + runhaskell Setup.hs copy --destdir=$pkgdir + + install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/BSD3 +} diff --git a/haskell-x11/hsmod.install b/haskell-x11/hsmod.install new file mode 100644 index 0000000..39bebf4 --- /dev/null +++ b/haskell-x11/hsmod.install @@ -0,0 +1,18 @@ +HS_DIR=/usr/share/haskell/haskell-x11 + +post_install() { + ${HS_DIR}/register.sh +} + +pre_upgrade() { + ${HS_DIR}/unregister.sh &>/dev/null # it whines uselessly about deps +} + +post_upgrade() { + ${HS_DIR}/register.sh +} + +pre_remove() { + ${HS_DIR}/unregister.sh +} + diff --git a/hugs98/PKGBUILD b/hugs98/PKGBUILD new file mode 100644 index 0000000..7a9cc0b --- /dev/null +++ b/hugs98/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Tom Newsom +# Contributor: Kevin Piche + +pkgname=hugs98 +pkgver=200609 +pkgrel=4 +pkgdesc="Haskell 98 interpreter" +arch=('i686' 'x86_64' 'ppc') +url="http://www.haskell.org/hugs" +license=('custom') +depends=('readline>=6.0' 'sh') +source=(http://cvs.haskell.org/Hugs/downloads/2006-09/$pkgname-plus-Sep2006.tar.gz) +md5sums=('e03e0ad79750d037237c47ebe33fa20e') + +build() { + if [ "$CARCH" = "x86_64" ]; then + unset CFLAGS + fi + + cd $startdir/src/$pkgname-plus-Sep2006 + #rm config.cache + ./configure --prefix=/usr --with-pthreads + make || return 1 + make DESTDIR=$startdir/pkg install + + install -Dm644 License ${pkgdir}/usr/share/licenses/hugs98/license +} diff --git a/perl-file-next/PKGBUILD b/perl-file-next/PKGBUILD new file mode 100644 index 0000000..f311a96 --- /dev/null +++ b/perl-file-next/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 25557 2010-09-06 16:11:59Z bluewind $ +# Maintainer: Florian Pritz + +pkgname=perl-file-next +_pkgname=File-Next +pkgver=1.06 +pkgrel=1 +pkgdesc='File::Next - File-finding iterator' +arch=('any') +license=('GPL' 'PerlArtistic') +url="http://search.cpan.org/dist/${_pkgname}" +depends=('perl>=5.10.0') +options=(!emptydirs) +source=(http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/${_pkgname}-$pkgver.tar.gz) +md5sums=('8d901b18e40c477acd18a6ea0fd7de64') + +build() { + cd "$srcdir/${_pkgname}-$pkgver" + + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd "$srcdir/${_pkgname}-$pkgver" + + make install DESTDIR="$pkgdir" + + find "$pkgdir" -name perllocal.pod -delete + find "$pkgdir" -name .packlist -delete +} diff --git a/rxvt-unicode/PKGBUILD b/rxvt-unicode/PKGBUILD new file mode 100644 index 0000000..b5d0005 --- /dev/null +++ b/rxvt-unicode/PKGBUILD @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 86729 2010-08-03 18:22:52Z ibiru $ +# Maintainer: tobias +# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org + +pkgname=rxvt-unicode +pkgver=9.09 +pkgrel=1 +pkgdesc="An unicode enabled rxvt-clone terminal emulator (urxvt)" +arch=(i686 x86_64 ppc) +depends=('gcc-libs' 'libxft' 'libxpm') +makedepends=('ncurses' 'perl>=5.10.0' 'pkgconfig') +optdepends=('perl: lots of utilities' 'gtk2-perl: to use the urxvt-tabbed') +url="http://software.schmorp.de/pkg/rxvt-unicode.html" +license=("GPL") +source=(http://dist.schmorp.de/rxvt-unicode/${pkgname}-${pkgver}.tar.bz2 \ + ${pkgname}.desktop ${pkgname}.png popup-menu-hang.diff) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -p0 < ../popup-menu-hang.diff || return 1 + ./configure --prefix=/usr \ + --with-terminfo=/usr/share/terminfo \ + --enable-font-styles \ + --enable-xim \ + --enable-keepscrolling \ + --enable-selectionscrolling \ + --enable-smart-resize \ + --enable-xpm-background \ + --enable-transparency \ + --enable-utmp \ + --enable-wtmp \ + --enable-lastlog || return 1 + make || return 1 + install -d "${pkgdir}/usr/share/terminfo" + export TERMINFO="${pkgdir}/usr/share/terminfo" + make DESTDIR="${pkgdir}" install || return 1 + # install the tabbing wrapper ( requires gtk2-perl! ) + sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed || return 1 + install -Dm 755 doc/rxvt-tabbed "${pkgdir}/usr/bin/urxvt-tabbed" || return 1 + # install freedesktop menu and icon ( icon from cvs checkout ) + install -Dm644 ../${pkgname}.desktop \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -Dm644 ../${pkgname}.png \ + "${pkgdir}/usr/share/pixmaps/${pkgname}.png" +} +md5sums=('3505887adae710382edee90ed5538a01' + '5bfefa1b41c2b81ca18f2ef847330543' + '84328cada91751df07324d95f8be4d1b' + 'aead33ba3b08eeb251fb0c1427a4a024') +sha1sums=('02ec1b5c9c1dff241bfc3b6d2c2a7e5c00aa47ad' + '79b7cacb7d6ce4a34f8a31a2e33475a8f7bf69cb' + '9ff58d7b1d60838c51c9045bc0be342fac456790' + 'ec4013f4af3a45da928b75f40fbf6389070e7fdd') diff --git a/rxvt-unicode/popup-menu-hang.diff b/rxvt-unicode/popup-menu-hang.diff new file mode 100644 index 0000000..09bb3c6 --- /dev/null +++ b/rxvt-unicode/popup-menu-hang.diff @@ -0,0 +1,24 @@ +Index: src/perl/urxvt-popup +=================================================================== +RCS file: /schmorpforge/rxvt-unicode/src/perl/urxvt-popup,v +retrieving revision 1.15 +diff -u -r1.15 urxvt-popup +--- src/perl/urxvt-popup 24 Dec 2007 08:21:40 -0000 1.15 ++++ src/perl/urxvt-popup 2 Aug 2009 08:22:52 -0000 +@@ -120,7 +120,7 @@ + $self->refresh; + + # might fail, but try anyways +- $self->grab ($self->{data}{event}{time}, 1) ++ $self->grab ($self->{data}{event}{time}) + and $self->allow_events_async; + + on_button_press $self, $self->{data}{event} if $self->{data}{event}{button}; +@@ -132,7 +132,7 @@ + my ($self, $event) = @_; + + # should definitely not fail +- $self->grab ($self->{data}{event}{time}, 1) ++ $self->grab ($self->{data}{event}{time}) + and $self->allow_events_async; + } diff --git a/rxvt-unicode/rxvt-unicode.desktop b/rxvt-unicode/rxvt-unicode.desktop new file mode 100644 index 0000000..436e8d1 --- /dev/null +++ b/rxvt-unicode/rxvt-unicode.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=rxvt-unicode +Comment=An Unicode capable rxvt clone +Exec=urxvt +Icon=rxvt-unicode +Terminal=false +Type=Application +Categories=Application;System;TerminalEmulator; diff --git a/rxvt-unicode/rxvt-unicode.png b/rxvt-unicode/rxvt-unicode.png new file mode 100644 index 0000000..0738a78 Binary files /dev/null and b/rxvt-unicode/rxvt-unicode.png differ diff --git a/xmonad-contrib/PKGBUILD b/xmonad-contrib/PKGBUILD new file mode 100644 index 0000000..6e6728e --- /dev/null +++ b/xmonad-contrib/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 26019 2010-09-12 16:03:14Z tdziedzic $ +# Maintainer: Sergej Pupykin +# Maintainer: Vesa Kaihlavirta +# Contributor: orbisvicis + +pkgname=xmonad-contrib +pkgver=0.9.1 +pkgrel=6 +pkgdesc="Add-ons for xmonad" +arch=('i686' 'x86_64') +url="http://xmonad.org/" +license=('BSD') +depends=('xmonad=0.9.1' 'sh' 'haskell-x11-xft=0.3' 'haskell-utf8-string=0.3.6') +makedepends=('ghc=6.12.3' 'haskell-x11=1.5.0.0') +install='xmonad-contrib.install' +source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) +md5sums=('09a6e5173878d43b9f3ddd13b3ec955b') + +build() { + cd $srcdir/$pkgname-$pkgver + + runhaskell Setup.lhs configure --ghc --prefix=/usr --flags="use_xft use_utf8" \ + --libsubdir=\$compiler/site-local/\$pkgid + + runhaskell Setup.lhs build + + runhaskell Setup.lhs register --gen-script + runhaskell Setup.lhs unregister --gen-script + + install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh + install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh + + runhaskell Setup.lhs copy --destdir=$pkgdir + install -D LICENSE $pkgdir/usr/share/licenses/xmonad-contrib/LICENSE +} +md5sums=('09a6e5173878d43b9f3ddd13b3ec955b') diff --git a/xmonad-contrib/xmonad-contrib.install b/xmonad-contrib/xmonad-contrib.install new file mode 100644 index 0000000..efc95ad --- /dev/null +++ b/xmonad-contrib/xmonad-contrib.install @@ -0,0 +1,17 @@ +HS_DIR=/usr/share/haskell/xmonad-contrib + +post_install() { + ${HS_DIR}/register.sh +} + +pre_upgrade() { + ${HS_DIR}/unregister.sh +} + +post_upgrade() { + ${HS_DIR}/register.sh +} + +pre_remove() { + ${HS_DIR}/unregister.sh +} diff --git a/xmonad/PKGBUILD b/xmonad/PKGBUILD new file mode 100644 index 0000000..fc0945e --- /dev/null +++ b/xmonad/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 26024 2010-09-12 16:06:47Z tdziedzic $ +# Maintainer: Sergej Pupykin +# Maintainer: Vesa Kaihlavirta +# Contributor: shild + +pkgname=xmonad +pkgver=0.9.1 +pkgrel=8 +pkgdesc="A lightweight X11 tiled window manager written in Haskell" +arch=('i686' 'x86_64' 'ppc') +url="http://xmonad.org/" +license=('BSD') +depends=('ghc=6.12.3' 'gmp' 'libxinerama' 'haskell-x11=1.5.0.0' 'sh' 'haskell-mtl=1.1.0.2' 'haskell-utf8-string=0.3.6') +install='xmonad.install' +source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz xmonad.desktop xmonad.svg) +md5sums=('3d0dd5cf77768b10e1b7f3a47e32b09e' + 'f61961459f190b6d948f1f2782afa7a7' + '72bfa5e62e4e44fe7fa59b6a7593d993') + +build() { + cd $srcdir/$pkgname-$pkgver + + runhaskell Setup.lhs configure --ghc --prefix=/usr \ + --libsubdir=\$compiler/site-local/\$pkgid || return 1 + + runhaskell Setup.lhs build || return 1 + + runhaskell Setup.lhs register --gen-script + runhaskell Setup.lhs unregister --gen-script + + install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh + install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh + runhaskell Setup.lhs copy --destdir=$pkgdir || return 1 +# runhaskell util/GenerateManpage.hs || return 1 + + install -D -m644 man/xmonad.1 $pkgdir/usr/share/man/man1/xmonad.1 || return 1 + + install -d -m755 $pkgdir/usr/share/xmonad && \ + install -D LICENSE $pkgdir/usr/share/licenses/xmonad/LICENSE || return 1 + + install -D -m644 $srcdir/xmonad.desktop $pkgdir/usr/share/applications/xmonad.desktop && \ + mkdir -p $pkgdir/etc/X11/sessions/ && \ + ln -s /usr/share/applications/xmonad.desktop $pkgdir/etc/X11/sessions/xmonad.desktop && \ + install -D -m644 $srcdir/xmonad.svg $pkgdir/usr/share/pixmaps/xmonad.svg +} diff --git a/xmonad/xmonad.desktop b/xmonad/xmonad.desktop new file mode 100644 index 0000000..a99be19 --- /dev/null +++ b/xmonad/xmonad.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xmonad +Icon=/usr/share/pixmaps/xmonad.svg +Comment=This session starts xmonad +Exec=/usr/bin/xmonad +Type=Application +NoDisplay=true +X-GNOME-WMName=Xmonad +X-GNOME-Autostart-Phase=WindowManager +X-GNOME-Provides=windowmanager +X-GNOME-Autostart-Notify=false diff --git a/xmonad/xmonad.install b/xmonad/xmonad.install new file mode 100644 index 0000000..2f6cd8c --- /dev/null +++ b/xmonad/xmonad.install @@ -0,0 +1,23 @@ +HS_DIR=/usr/share/haskell/xmonad + +post_install() { + ${HS_DIR}/register.sh + echo "xmonad now has dynamic configuration via ~/.xmonad/xmonad.hs" + echo "See http://haskell.org/haskellwiki/Xmonad/Config_archive for examples" + echo + echo "If you would like to run xmonad as a window manager inside GNOME, please see" + echo "http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Setting_up_Gnome_to_use_Xmonad" +} + +pre_upgrade() { + ${HS_DIR}/unregister.sh &> /dev/null + exit 0 +} + +post_upgrade() { + ${HS_DIR}/register.sh +} + +pre_remove() { + ${HS_DIR}/unregister.sh +} diff --git a/xmonad/xmonad.png b/xmonad/xmonad.png new file mode 100644 index 0000000..d957f62 Binary files /dev/null and b/xmonad/xmonad.png differ diff --git a/xmonad/xmonad.svg b/xmonad/xmonad.svg new file mode 100644 index 0000000..5fc8842 --- /dev/null +++ b/xmonad/xmonad.svg @@ -0,0 +1,77 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + +