diff options
author | GordonGR | 2015-06-08 14:08:03 +0300 |
---|---|---|
committer | GordonGR | 2015-06-08 14:08:03 +0300 |
commit | 2dbea106e75a7a8ba764ccf02a681376f6f845ed (patch) | |
tree | 75a1c013c3a0078ff09bb0448e429388aa3048a5 | |
download | aur-2dbea106e75a7a8ba764ccf02a681376f6f845ed.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | libsidplay-1.36.59-gcc43.patch | 40 |
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..9f4211824f8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = lib32-libsidplay + pkgdesc = A library for playing SID music files, lib32. + pkgver = 1.36.59 + pkgrel = 1 + url = http://critical.ch/distfiles/ + arch = x86_64 + license = GPL + depends = libsidplay + options = !libtool + source = http://critical.ch/distfiles/libsidplay-1.36.59.tgz + source = libsidplay-1.36.59-gcc43.patch + md5sums = 37c51ba4bd57164b1b0bb7b43b9adece + md5sums = c24d7bca2639f4fee03c40c7dcaadfee + +pkgname = lib32-libsidplay + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..1f11247d5fc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: GordonGR <gordongr@freemail.gr> +# Contributor: Kritoke <kritoke@gamebox.net> + +pkgname=lib32-libsidplay +_pkgname=libsidplay +pkgver=1.36.59 +pkgrel=1 +pkgdesc="A library for playing SID music files, lib32." +arch=('x86_64') +url="http://critical.ch/distfiles/" +license=('GPL') +options=('!libtool') +depends=("${_pkgname}") +source=("http://critical.ch/distfiles/${_pkgname}-${pkgver}.tgz" + "libsidplay-1.36.59-gcc43.patch") +md5sums=('37c51ba4bd57164b1b0bb7b43b9adece' + 'c24d7bca2639f4fee03c40c7dcaadfee') + +prepare() { +cd ${srcdir}/${_pkgname}-${pkgver} +patch -Np1 -i $srcdir/libsidplay-1.36.59-gcc43.patch +} + +build() { +cd ${srcdir}/${_pkgname}-${pkgver} +export CC="gcc -m32" +export CXX="g++ -m32" +export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + +./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib32 + +make +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + cd "$pkgdir/usr" + rm -rf include/ +} diff --git a/libsidplay-1.36.59-gcc43.patch b/libsidplay-1.36.59-gcc43.patch new file mode 100644 index 00000000000..5beef46c6c1 --- /dev/null +++ b/libsidplay-1.36.59-gcc43.patch @@ -0,0 +1,40 @@ +diff --git a/src/sidtune.cpp b/src/sidtune.cpp +index 4d1d33b..6fbae80 100644 +--- a/src/sidtune.cpp ++++ b/src/sidtune.cpp +@@ -306,11 +306,7 @@ udword sidTune::loadFile(const char* fileName, ubyte** bufferRef) + return 0; + } + // Open binary input file stream at end of file. +-#if defined(SID_HAVE_IOS_BIN) +- ifstream myIn( fileName, ios::in|ios::bin|ios::ate ); +-#else + ifstream myIn( fileName, ios::in|ios::binary|ios::ate ); +-#endif + // As a replacement for !is_open(), bad() and the NOT-operator + // don't seem to work on all systems. + #if defined(SID_DONT_HAVE_IS_OPEN) +@@ -972,11 +968,7 @@ bool sidTune::saveC64dataFile( const char* fileName, bool overWriteFlag ) + } + // Open binary output file stream. + else +-#if defined(SID_HAVE_IOS_BIN) +- fMyOut.open( fileName, ios::out|ios::bin|ios::trunc ); +-#else + fMyOut.open( fileName, ios::out|ios::binary|ios::trunc ); +-#endif + if ( !fMyOut ) + { + info.statusString = text_cantCreateFile; +@@ -1061,11 +1053,7 @@ bool sidTune::savePSIDfile( const char* fileName, bool overWriteFlag ) + } + // Open binary output file stream. + else +-#if defined(SID_HAVE_IOS_BIN) +- fMyOut.open( fileName, ios::out|ios::bin|ios::trunc ); +-#else + fMyOut.open( fileName, ios::out|ios::binary|ios::trunc ); +-#endif + if ( !fMyOut ) + { + info.statusString = text_cantCreateFile; |