diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2011-03-19 11:30:26 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2011-03-19 11:30:26 +0000 |
commit | 372b345f3b0740be075c4fa41c4bf31540132521 (patch) | |
tree | 7538c528f86a6c69e0550df9ae8e6e8790304af4 /testing | |
parent | 07bee295f1067e473190dbdd673f90642d47a97f (diff) | |
parent | 3d8a02ea6a3178f1e6c3d85f118bd4c4d43d589e (diff) | |
download | aports-372b345f3b0740be075c4fa41c4bf31540132521.tar.bz2 aports-372b345f3b0740be075c4fa41c4bf31540132521.tar.xz |
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing')
-rw-r--r-- | testing/irrlicht/APKBUILD | 77 | ||||
-rw-r--r-- | testing/libxp/APKBUILD | 44 | ||||
-rw-r--r-- | testing/printproto/APKBUILD | 24 | ||||
-rw-r--r-- | testing/supertuxkart/APKBUILD | 43 | ||||
-rw-r--r-- | testing/txt2man/APKBUILD | 42 | ||||
-rw-r--r-- | testing/txt2man/fixbashism.patch | 14 | ||||
-rw-r--r-- | testing/txt2man/makefile.patch | 23 |
7 files changed, 267 insertions, 0 deletions
diff --git a/testing/irrlicht/APKBUILD b/testing/irrlicht/APKBUILD new file mode 100644 index 000000000..6d1405ba2 --- /dev/null +++ b/testing/irrlicht/APKBUILD @@ -0,0 +1,77 @@ +# Maintainer: Jeff Bilyk <jbilyk@alpinelinux.org> +pkgname=irrlicht +pkgver=1.7.2 +_pkgmajver=1.7 +pkgrel=0 +pkgdesc="3D graphics engine" +url="http://irrlicht.sourceforge.net" +arch="all" +license="ZLIB" +depends= +depends_dev="mesa-dev jpeg-dev bzip2 libpng-dev zlib-dev" +makedepends="$depends_dev" +install="" +source="http://downloads.sourceforge.net/irrlicht/irrlicht-$pkgver.zip" + +_builddir="$srcdir"/$pkgname-$pkgver/source/Irrlicht +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make sharedlib || return 1 + make || return 1 + + #from arch pkgbuild: example build helper + ln -s libIrrlicht.so.$pkgver "$srcdir"/$pkgname-$pkgver/lib/Linux/libIrrlicht.so + + cd ../../examples + # Fix examples building + sed -i '/define USE_IRRKLANG/s:.*://&:' ./Demo/CDemo.h + make || return 1 +} + +package() { + cd "$_builddir" + + mkdir -p "$pkgdir"/usr/lib + mkdir -p "$pkgdir"/usr/share/licenses/$pkgname + mkdir -p "$pkgdir"/usr/share/$pkgname/examples/bin + mkdir -p "$pkgdir"/usr/share/doc/$pkgname + mkdir -p "$pkgdir"/usr/include/$pkgname/include + + make INSTALL_DIR="$pkgdir" install || return 1 + + cd ../.. + install -m644 readme.txt "$pkgdir"/usr/share/licenses/$pkgname + + #from arch pkgbuild: install static library and fix perms + install -m644 lib/Linux/libIrrlicht.a "$pkgdir"/usr/lib + + #from arch pkgbuild: install media file examples + cp -r media "$pkgdir"/usr/share/$pkgname + + #from arch pkgbuild: install docs + cp -r doc/* "$pkgdir"/usr/share/doc/$pkgname + rm -f "$pkgdir"/usr/share/doc/$pkgname/*.txt + + cd "$pkgdir"/usr/lib + mv ../../libIrrlicht* ./ + ln -s libIrrlicht.so.$pkgver libIrrlicht.so.1 + ln -s libIrrlicht.so.$pkgver libIrrlicht.so.$_pkgmajver + + mv "$pkgdir"/../include/* "$pkgdir"/usr/include/$pkgname/include/ + mv "$pkgdir"/usr/include/$pkgname/include/irrlicht/* "$pkgdir"/usr/include/$pkgname/include/ + rm -rf "$pkgdir"/../include/ + + install -m755 "$srcdir"/$pkgname-$pkgver/bin/Linux/* "$pkgdir"/usr/share/$pkgname/examples/bin/ +} + +md5sums="eb627d4c432bf73f12bc6d9ddc700b07 irrlicht-1.7.2.zip" diff --git a/testing/libxp/APKBUILD b/testing/libxp/APKBUILD new file mode 100644 index 000000000..ff2b4cb9b --- /dev/null +++ b/testing/libxp/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libxp +pkgver=1.0.1 +pkgrel=0 +pkgdesc="X.Org X11 libXp runtime library" +url="http://www.x.org" +arch="all" +license="MIT" +depends= +depends_dev="util-macros libx11-dev libxext-dev libxau-dev printproto" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://xorg.freedesktop.org/releases/individual/lib/libXp-$pkgver.tar.bz2" + +_builddir="$srcdir"/libXp-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="7ae1d63748e79086bd51a633da1ff1a9 libXp-1.0.1.tar.bz2" diff --git a/testing/printproto/APKBUILD b/testing/printproto/APKBUILD new file mode 100644 index 000000000..dc1c0b415 --- /dev/null +++ b/testing/printproto/APKBUILD @@ -0,0 +1,24 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=printproto +pkgver=1.0.5 +pkgrel=0 +pkgdesc="X11 print extension wire protocol" +url="http://xorg.freedesktop.org/" +arch="noarch" +license="custom" +depends="" +depends_dev="util-macros" +makedepends="$depends_dev" +source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2" + +build() { + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr + make || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="99d0e25feea2fead7d8325b7000b41c3 printproto-1.0.5.tar.bz2" diff --git a/testing/supertuxkart/APKBUILD b/testing/supertuxkart/APKBUILD new file mode 100644 index 000000000..cc47cc6e3 --- /dev/null +++ b/testing/supertuxkart/APKBUILD @@ -0,0 +1,43 @@ +# Maintainer: Jeff Bilyk <jbilyk@alpinelinux.org> +pkgname=supertuxkart +pkgver=0.7 +pkgrel=0 +pkgdesc="Kart racing game" +url="http://supertuxkart.sourceforge.net" +arch="x86 x86_64" +license="GPL" +depends= +depends_dev="irrlicht libvorbis-dev libogg-dev openal-soft-dev mesa-dev jpeg-dev gettext-dev" +makedepends="$depends_dev" +source="http://downloads.sourceforge.net/project/$pkgname/SuperTuxKart/0.7/$pkgname-$pkgver-src.tar.bz2" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --datadir=/usr/share \ + --bindir=/usr/bin \ + --with-irrlicht=/usr/include/irrlicht \ + || return 1 + # From arch pkgbuild + sed -i "s#/usr/local#/usr#" src/io/file_manager.cpp + sed -i "s#/games#/bin#" $(grep -r "/games" *) + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="2806f271e4d37fee5ad8ca166e1ad489 supertuxkart-0.7-src.tar.bz2" diff --git a/testing/txt2man/APKBUILD b/testing/txt2man/APKBUILD new file mode 100644 index 000000000..72079b72f --- /dev/null +++ b/testing/txt2man/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=txt2man +pkgver=1.5.6 +pkgrel=0 +pkgdesc="Convert flat ASCII text to man page format" +url="http://mvertes.free.fr/txt2man/" +arch="noarch" +license="GPLv2+" +depends="gawk" +makedepends= +install="" +subpackages="$pkgname-doc" +source="http://mvertes.free.fr/download/txt2man-$pkgver.tar.gz + fixbashism.patch + makefile.patch" + +_builddir="$srcdir"/txt2man-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" prefix=/usr mandir=/usr/share/man \ + install || return 1 +} + +md5sums="f301b3dc1872fab1b7740f9f69ff281b txt2man-1.5.6.tar.gz +586f2e01dde9ef07a2734866797f8646 fixbashism.patch +311fe2373e54b15eda845467ce68cd72 makefile.patch" diff --git a/testing/txt2man/fixbashism.patch b/testing/txt2man/fixbashism.patch new file mode 100644 index 000000000..f31059d88 --- /dev/null +++ b/testing/txt2man/fixbashism.patch @@ -0,0 +1,14 @@ +--- ./bookman.orig ++++ ./bookman +@@ -83,9 +83,9 @@ + shift $(($OPTIND - 1)) + date=${date:-$(date +'%d %B %Y')} + +-[[ $1 ]] || set -- $(while read; do echo $REPLY; done) ++[ -n "$1" ] || set -- $(while read REPLY; do echo $REPLY; done) + +-[[ $outfile ]] && post="$post >$outfile" ++[ -n "$outfile" ] && post="$post >$outfile" + + { + # Compute table of content from postscript output. diff --git a/testing/txt2man/makefile.patch b/testing/txt2man/makefile.patch new file mode 100644 index 000000000..617d4b0d2 --- /dev/null +++ b/testing/txt2man/makefile.patch @@ -0,0 +1,23 @@ +--- ./Makefile.orig ++++ ./Makefile +@@ -1,5 +1,7 @@ + # Makefile + prefix ?= /usr/local ++bindir ?= $(prefix)/bin ++mandir ?= $(prefix)/share/man + version = txt2man-1.5.6 + BIN = src2man bookman txt2man + MAN1 = src2man.1 txt2man.1 bookman.1 +@@ -7,9 +9,9 @@ + all: $(MAN1) + + install: $(MAN1) +- mkdir -p $(prefix)/bin $(prefix)/man/man1 +- cp $(BIN) $(prefix)/bin/ +- cp $(MAN1) $(prefix)/man/man1 ++ mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 ++ cp $(BIN) $(DESTDIR)$(bindir) ++ cp $(MAN1) $(DESTDIR)$(mandir)/man1 + + clean: + rm -f *.1 *.txt *.ps *.pdf *.html |