Commit c5e9f39f authored by Luca Giambonini's avatar Luca Giambonini

gcc rebuild part1

parent 59cbbc3b
pkgname=0ad
pkgver=0.0.22
_pkgver=$pkgver-alpha
pkgrel=4
pkgrel=5
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
screenshot=http://www.wildfiregames.com/0ad/images/news_images/dynamic-borders.jpg
arch=('x86_64')
......@@ -9,7 +9,7 @@ url="http://play0ad.com/"
license=('GPL2' 'CCPL') # source licenses.
depends=('boost-libs' 'curl' 'enet' 'gamin' 'gloox' 'libgl' 'libogg' 'libpng' 'libvorbis'
'libxcursor' 'libxml2' 'mesa' 'miniupnpc' 'nspr' 'openal'
'sdl2' 'zip' 'zlib' 0ad-data=$pkgver)
'sdl2' 'zip' 'zlib' 'gloox' 0ad-data=$pkgver)
makedepends=('boost' 'python2' 'cmake')
replaces=(0ad-debug) # If someone wants a debug version, they should rebuild 0ad with config=debug.
categories=('games')
......
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrin Chaves Fernndez (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Giuseppe Cal <jiveaxe@gmail.com>
pkgname=allegro
pkgver=5.2.1.1
pkgver=5.2.3
pkgrel=1
pkgdesc="Portable library mainly aimed at video game and multimedia programming."
arch=('i686' 'x86_64')
arch=('x86_64')
url="http://alleg.sourceforge.net/"
license=('ZLIB')
depends=('alsa-lib' 'flac' 'freetype2' 'glibc' 'glu' 'jack' 'libgl' 'libjpeg' 'libogg' 'libpng' 'libvorbis' 'libx11' 'libxau' 'libxcb' 'libxcursor' 'libxdmcp' 'libxext' 'libxfixes' 'libxpm' 'libxrender' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'libpng' 'openal'
'physfs' 'zlib')
makedepends=('cmake')
source=("http://download.gna.org/allegro/allegro/$pkgver/allegro-$pkgver.tar.gz")
md5sums=('cbfe9d5ad499ddf0a2bd02950b180300')
source=("git+https://github.com/liballeg/${pkgname}${pkgver%%.*}#tag=$pkgver.0")
md5sums=('SKIP')
build() {
cd "${srcdir}"
mkdir -p build && cd build
cmake "${srcdir}/${pkgname}-${pkgver}" \
cmake "${srcdir}/${pkgname}${pkgver%%.*}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
......@@ -32,7 +27,6 @@ package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/${pkgname}-${pkgver}/LICENSE.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "${srcdir}/${pkgname}${pkgver%%.*}/LICENSE.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
......@@ -2,7 +2,7 @@
pkgname=allegro4
pkgver=4.4.2
pkgrel=1
pkgrel=2
pkgdesc="Portable library mainly aimed at video game and multimedia programming (legacy version)"
arch=('x86_64')
url="http://alleg.sourceforge.net/"
......@@ -10,8 +10,8 @@ license=('custom')
depends=('sh' 'jack' 'libxpm' 'libxxf86vm' 'libxxf86dga' 'libxcursor')
makedepends=('cmake' 'libpng' 'mesa' 'glu')
options=('staticlibs')
source=(http://downloads.sourceforge.net/alleg/allegro-${pkgver}.tar.gz
LICENSE)
source=("https://github.com/liballeg/allegro5/releases/download/$pkgver/allegro-$pkgver.tar.gz"
LICENSE)
md5sums=('4db71b0460fc99926ae91d223199c2e6'
'cd97e2992e8e66b9e6a449d832dc9c7a')
......
pkgname=bomi
pkgver=0.9.11.r37.g2d2a3515
pkgrel=1
pkgrel=2
pkgdesc="Powerful and easy-to-use multimedia player"
arch=('x86_64')
url="http://bomi-player.github.io"
......
pkgname=clementine-qt5
_pkgname=Clementine
pkgver=1.3.1.r359.g987aa20
pkgver=1.3.1.r359.g987aa20b9
_pkgver=987aa20
pkgrel=2
pkgrel=1
pkgdesc="Experimental Qt5 version of Clementine, a modern music player and library organiser."
arch=('x86_64')
license=('GPL')
......
pkgname=dblatex
pkgver=0.3.10
pkgrel=1
pkgrel=2
pkgdesc="DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex"
arch=('x86_64')
url="https://pypi.python.org/pypi/dblatex"
license=(GPL)
depends=('docbook-xml' 'docbook-xsl' 'libxslt' 'python2' 'texlive-core' 'texlive-htmlxml' 'texlive-latexextra'
'texlive-pictures')
depends=('docbook-xml' 'docbook-xsl' 'libxslt' 'python2' 'texlive-core' 'texlive-formatsextra' 'texlive-latexextra'
'texlive-pictures' 'texlive-science')
source=("http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-${pkgver}/dblatex-${pkgver}.tar.bz2")
sha512sums=('33a5ee3d23d3b9a1576be248a312ca741ea7cb629334a98fb6cb49e0f0f932334506ea934312de04ec645c86ec52699687bd2574b1802d3c23815b44c8514b7b')
package() {
cd $pkgname-$pkgver
python2 setup.py install \
--root $pkgdir \
--catalogs=/etc/xml/docbook
# Python 2 fix.
sed -i -e "s,${pkgdir},," -e "s,#!/usr/bin/env python,#!/usr/bin/env python2," $pkgdir/usr/bin/dblatex
cd "${srcdir}/${pkgname}-${pkgver}"
# Texlive fix. Without it, ‘ghc’ package documentation won’t compile.
# NOTE: see http://www.haskell.org/pipermail/glasgow-haskell-users/2011-March/020199.html
sed -i -e "s#<xsl:param name=\"texlive.version\">2010</xsl:param>#<xsl:param name=\"texlive.version\">2009</xsl:param>#" $pkgdir/usr/share/$pkgname/xsl/param.xsl
python2 setup.py install --root "${pkgdir}" --catalogs=/etc/xml/docbook-xml
sed -i -e "s,${pkgdir},," -e "s,#!/usr/bin/env python,#!/usr/bin/env python2," \
"${pkgdir}/usr/bin/dblatex"
}
# Maintainer: Martin Lee <hellnest.fuah at gmail dot com>
pkgname=gloox
pkgver=1.0.17
pkgrel=2
pkgver=1.0.20
pkgrel=1
pkgdesc="C++ libraries for development of Jabber client/component/server"
arch=('any')
url="http://camaya.net/gloox"
......@@ -10,7 +10,7 @@ options=('!libtool')
license=("GPL")
depends=('libidn' 'gnutls')
source=(http://camaya.net/download/gloox-$pkgver.tar.bz2)
md5sums=('a8cc8565790c8b0afb4a4725a8c7d38d')
md5sums=('2d7394e908f6637a96d0535c18b942e1')
build() {
cd $srcdir/gloox-$pkgver
......
pkgname=kodi
pkgver=17.6
_codename=Krypton
pkgrel=1
pkgrel=2
arch=('x86_64')
url="http://kodi.tv"
license=('GPL2')
......
......@@ -2,7 +2,7 @@
pkgname=mythtv
pkgver=29.0
pkgrel=2
pkgrel=3
pkgdesc="A Homebrew PVR project"
arch=('x86_64')
url="http://www.mythtv.org/"
......@@ -20,14 +20,18 @@ optdepends=('glew: for GPU commercial flagging'
install='mythtv.install'
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
'mythbackend.service'
'99-mythbackend.rules')
sha256sums=('4232f43793783d14f29f5622dcb77c1a4211e7d5624ddbb0a60625fbe710b3c2'
'99-mythbackend.rules'
'qt510.patch')
sha256sums=('1b4406305d91202ea6ca4e7e6fce6dd58a3d475a1bbe99d1b1b94812052745de'
'30a301d31e2396b08eee97188619b900a834081d9792a36ae274fb0dfa65a9dc'
'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333')
'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333'
'cf0e06f2c70dfd258bfa0acc4515e1cd014eeb241d8060c999d2c64eda8ee096')
prepare() {
cd $srcdir/$pkgname-$pkgver/$pkgname
patch -Np2 -i ../../qt510.patch
find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
}
......
This diff is collapsed.
#
# Games Packages for Chakra, part of chakra-project.org
#
# Contributor: Larry Hajali <larryhaja[at]gmail[dot]com>
# Contributor: Hubert Grzeskowiak <arch at nemesis13 dot de>
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=tinyxml
pkgver=2.6.2
pkgrel=1
pkgrel=2
pkgdesc="A simple, small, C++ XML parser that can be easily integrated into other programs"
url='http://www.grinninglizard.com/tinyxml/'
arch=('i686' 'x86_64')
arch=('x86_64')
license=('zlib')
makedepends=('setconf')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_${pkgver//./_}.tar.gz"
'entity.patch'
'tinyxml-2.5.3-stl.patch')
'tinyxml-2.5.3-stl.patch'
"$pkgname.pc")
md5sums=('c1b864c96804a10526540c664ade67f0'
'b6cc2d9330707373d920f760793c6311'
'6db8334398e0cdad7e3c6406206ff42a')
'6db8334398e0cdad7e3c6406206ff42a'
'9c6788d9e2e8485ffbd7d8e0e8da940d')
build() {
cd "$srcdir"/$pkgname
prepare() {
cd "$pkgname"
# Fix entity encoding.
patch -p0 < "$srcdir"/entity.patch
# Fix entity encoding
patch -p0 -i "$srcdir/entity.patch"
# Make TINYXML_USE_STL permanently defined in tinyxml.h
patch -p1 < "$srcdir"/$pkgname-2.5.3-stl.patch
patch -p1 -i "$srcdir/$pkgname-2.5.3-stl.patch"
# Fix Makefile
sed -i \
-e '/^TINYXML_USE_STL/ s|=.*|=YES|' \
-e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
setconf Makefile TINYXML_USE_STL YES
setconf Makefile RELEASE_CFLAGS "$CXXFLAGS -fPIC"
}
make
build() {
cd "$pkgname"
g++ -fPIC ${CXXFLAGS} -shared -o lib${pkgname}.so.0.$pkgver -Wl,-soname,lib${pkgname}.so.0 *.o
make
g++ -fPIC "$CXXFLAGS" -shared -o "lib${pkgname}.so.0.$pkgver" \
-Wl,-soname,"lib${pkgname}.so.0" $(ls *.o | grep -v xmltest)
}
package()
{
cd "$srcdir"/$pkgname
package() {
cd "$pkgname"
install -d -m 0755 "$pkgdir"/usr/{lib,include}
install -m 0755 lib${pkgname}.so.0.$pkgver "$pkgdir"/usr/lib/
install -m 0644 $pkgname.h tinystr.h "$pkgdir"/usr/include
(cd "$pkgdir"/usr/lib
ln -s lib${pkgname}.so.0.$pkgver lib${pkgname}.so.0
ln -s lib${pkgname}.so.0.$pkgver lib${pkgname}.so
)
install -m 0755 "lib${pkgname}.so.0.$pkgver" "$pkgdir"/usr/lib/
install -m 0644 "$pkgname.h" tinystr.h "$pkgdir"/usr/include
install -Dm644 readme.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir/$pkgname.pc" "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
cd "$pkgdir/usr/lib"
ln -s "lib${pkgname}.so.0.$pkgver" "lib${pkgname}.so.0"
ln -s "lib${pkgname}.so.0.$pkgver" "lib${pkgname}.so"
}
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: TinyXml
Description: simple, small, C++ XML parser
Version: 2.6.2
Libs: -L${libdir} -ltinyxml
Cflags: -I${includedir}
pkgname=toxcore
_pkgname=c-toxcore
pkgver=0.1.11
pkgrel=1
pkgrel=2
pkgdesc="A FOSS instant messaging application aimed to replace Skype"
arch=('x86_64')
url="https://tox.chat/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment