summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicola Murino2017-02-06 23:32:53 +0100
committerNicola Murino2017-02-06 23:32:53 +0100
commitdc9cbec312d999a8e07b49c11feb457c2116ffbd (patch)
tree236de23bdf2fb71cdf01030326f7278f02675cf3
downloadaur-dc9cbec312d999a8e07b49c11feb457c2116ffbd.tar.gz
Initial version
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD40
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..06c40a9eb42
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Feb 6 22:32:38 UTC 2017
+pkgbase = mingw-w64-mpg123
+ pkgdesc = A console based real time MPEG Audio Player for Layer 1, 2 and 3 (mingw-w64)
+ pkgver = 1.23.8
+ pkgrel = 1
+ url = http://sourceforge.net/projects/mpg123
+ arch = any
+ license = LGPL2.1
+ makedepends = mingw-w64-configure
+ depends = mingw-w64-crt
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = http://downloads.sourceforge.net/sourceforge/mpg123/mpg123-1.23.8.tar.bz2
+ sha1sums = 799b9fe2beb5ae1c1769b10d011c0904f8e5273e
+
+pkgname = mingw-w64-mpg123
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..48a61bcbb0a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: drakkan <nicola.murino at gmail dot com>
+pkgname=mingw-w64-mpg123
+pkgver=1.23.8
+pkgrel=1
+pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3 (mingw-w64)"
+arch=('any')
+url="http://sourceforge.net/projects/mpg123"
+license=('LGPL2.1')
+makedepends=('mingw-w64-configure')
+depends=('mingw-w64-crt')
+options=('!strip' '!buildflags' 'staticlibs')
+source=("http://downloads.sourceforge.net/sourceforge/mpg123/mpg123-${pkgver}.tar.bz2")
+sha1sums=('799b9fe2beb5ae1c1769b10d011c0904f8e5273e')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd "${srcdir}/mpg123-$pkgver/"
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure --with-audio=dummy ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/mpg123-$pkgver/build-${_arch}"
+ make DESTDIR="${pkgdir}" install
+ rm -rf "$pkgdir"/usr/${_arch}/share/man
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ find "$pkgdir" -name '*.exe' -delete
+ find "$pkgdir" -name 'libout123*' -delete
+ find "$pkgdir" -name 'out123.h' -delete
+ done
+}
+
+# vim: ts=2 sw=2 et: