Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Jookia <166291@gmail.com>
# Maintainer: Matthias "matthiaskrgr" Krüger
pkgname=desurium
pkgver=0.8.0_rc9
pkgrel=1
pkgdesc="A community-driven digital distribution service for gamers (open source version)"
url="http://github.com/lodle/Desurium"
license=('GPL3')
arch=('i686' 'x86_64')
makedepends=('cmake' 'git' 'boost' 'scons' 'gendesk' 'sed')
depends=('v8' 'tinyxml' 'boost-libs' 'flashplugin' 'libxxf86vm' 'gperf'
'curl' 'c-ares' 'libnotify' 'libgnome-keyring' 'yasm' 'libxslt'
'cups' 'flex' 'alsa-lib' 'libjpeg-turbo' 'speex' 'libevent'
'gconf' 'xdg-user-dirs' 'flac' 'libwebp' 'xdg-utils')
provides=('desura')
conflicts=('desura')
CMAKE_ARGS="
-DCMAKE_INSTALL_PREFIX=/usr
-DBINDIR=/usr/bin
-DDATADIR=/usr/share/
-DRUNTIME_LIBDIR=/usr/lib/
-DWITH_FLASH=off
-DBUILD_CEF=OFF"
if [ "${CARCH}" = "x86_64" ]; then
depends+=('binutils-multilib')
CMAKE_ARGS+=" -D32BIT_SUPPORT=ON"
else # 32 bit
depends+=('binutils')
fi
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "Desurium" ]]; then
cd "Desurium"
msg "Removing build files..."
rm -rf build
msg "Updating..."
git fetch
msg "The repo has been updated."
else
msg "Cloning..."
git clone git://github.com/lodle/Desurium.git "Desurium"
fi
cd "$srcdir/Desurium"
echo "Note: checking out '$pkgver'."
git checkout --quiet $pkgver
msg "GIT checkout done or server timeout"
msg "Starting build..."
cd "$srcdir/Desurium"
if [ ! -d build ] ; then
mkdir build
fi
cd build
msg "Running cmake..."
cmake $CMAKE_ARGS ..
msg "Running make..."
make
}
check() {
cd "$srcdir/Desurium/build"
make test
}
package() {
cd "$srcdir/Desurium/build"
msg "Compiling into pkgdir this time..."
make DESTDIR="$pkgdir/" install
cd $srcdir
gendesk -n ../PKGBUILD
sed -i \
-e 's/Icon=.*$/Icon=desura/' \
-e 's/Exec=.*$/Exec=desura/' \
-e 's/Categories=.*$/Categories=Game;/' \
-e 's/Name=.*$/Name=Desurium/' ${pkgname}.desktop
install -m644 -D \
${srcdir}/Desurium/src/branding_desurium/data/desura_lin.png \
${pkgdir}/usr/share/pixmaps/desura.png
install -m644 -D \
${pkgname}.desktop \
${pkgdir}/usr/share/applications/desura.desktop
msg "Compiling done"
mkdir -p ${pkgdir}/usr/bin
}
# vim:set ts=2 sw=2 et:
|