summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorYaohan Chen2016-08-13 20:32:31 -0400
committerYaohan Chen2016-08-13 20:46:21 -0400
commitb8c71246898cc04f0a1ad7674a12765483589cb1 (patch)
tree091338b5796d7f5a76e6580b12dae5cf822b394c /PKGBUILD
downloadaur-b8c71246898cc04f0a1ad7674a12765483589cb1.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..158e654f57a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer: Yaohan Chen <yaohan.chen@gmail.com>
+# Contributor: Christopher Rosell <chrippa@tanuki.se>
+# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
+# Contributor: Mikael Eriksson <mikael_miffe_eriksson@yahoo.se>
+
+realname=libflashsupport
+bename=pulse
+_gitname="${realname}-${bename}"
+pkgname="${realname}-${bename}-git"
+pkgver=r10.a9bc3ca
+pkgrel=1
+pkgdesc="Adds PulseAudio support to the Flash browser plugin"
+url="http://git.0pointer.net/${realname}.git/"
+license=("GPL")
+arch=("x86_64" "i686")
+depends=("flashplugin")
+depends_x86_64=("lib32-libpulse")
+depends_i686=("libpulse")
+makedepends=("automake" "autoconf" "git" "pkg-config")
+source=("${_gitname}::git+http://git.0pointer.net/${realname}.git")
+sha256sums=(SKIP)
+
+prepare() {
+ cd "${srcdir}/${_gitname}"
+
+ # Patch
+ sed -i 's|#define V4L1|//#define V4L1|g' 'flashsupport.c'
+}
+
+pkgver() {
+ cd "${srcdir}"/${_gitname}/
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+case "$CARCH" in
+ x86_64)
+ libdir='/usr/lib32'
+ ;;
+ i686)
+ libdir='/usr/lib'
+ ;;
+esac
+
+build() {
+ cd "${srcdir}/${_gitname}"
+
+ # Config
+ [ ${CARCH} = 'x86_64' ] && CXXFLAGS="$CXXFLAGS -fPIC"
+
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="${libdir}/pkgconfig"
+
+ NOCONFIGURE=1 ./bootstrap.sh
+ ./configure --prefix=/usr --libdir="${libdir}" --libexecdir="${libdir}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+
+ make DESTDIR="${pkgdir}" install
+ rm "${pkgdir}/${libdir}/${realname}.la"
+}