Skip to content

Instantly share code, notes, and snippets.

@dhead666 dhead666/PKGBUILD
Created Aug 19, 2012

Embed
What would you like to do?
vdr-plugin-pvrinput PKGBUILD
# Maintainer : Edgar Hucek <gimli at dark-green dot com>
_pluginname=pvrinput
pkgname=vdr-plugin-${_pluginname}
pkgver=20120728
pkgrel=1
pkgdesc="VDR PVRInput Plugin"
arch=('i686' 'x86_64' 'arm')
url="http://projects.vdr-developer.org/git/vdr-plugin-pvrinput.git"
license=('GPL2')
depends=('vdr')
makedepends=('gcc' 'vdr' 'git')
conflicts=()
source=()
md5sums=()
build() {
export MAKEFLAGS="-j1"
cd "$srcdir/" || return 1
_githost="http://projects.vdr-developer.org/git/"
_gitrepo="vdr-plugin-pvrinput.git"
if [ -e $srcdir/vdr-plugin-${_pluginname} ]; then
cd $srcdir/vdr-plugin-${_pluginname}
git rebase origin
git checkout $gitid
else
git clone ${_githost}/${_gitrepo}
cd $srcdir/vdr-plugin-${_pluginname}
git checkout $gitid
fi
if [ -e $srcdir/vdr-plugin-${_pluginname}-build ]; then
rm -rf $srcdir/vdr-plugin-${_pluginname}-build
fi
cp -r $srcdir/vdr-plugin-${_pluginname} $srcdir/vdr-plugin-${_pluginname}-build
cd $srcdir/vdr-plugin-${_pluginname}-build
make VDRDIR="/usr/include/vdr" LIBDIR="." \
LOCALEDIR="$pkgdir/usr/share/locale" \
INCLUDES="-I /usr/include/vdr -I./src" all || return 1
mkdir -p $pkgdir/usr/lib/vdr/plugins || return 1
install -m 755 libvdr-*.so.* $pkgdir/usr/lib/vdr/plugins/ || return 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.