summaryrefslogtreecommitdiffstats
path: root/main/libcrystalhd/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-08 09:50:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-08 09:52:00 +0000
commit2845a7bd4ab0184c1b4b33542c31b550be6ea290 (patch)
tree022a847a79baf21c3296dbfb32eb367b1587e43e /main/libcrystalhd/APKBUILD
parentd4af947cb4a17a69a81646250bd5578449369b60 (diff)
downloadaports-2845a7bd4ab0184c1b4b33542c31b550be6ea290.tar.bz2
aports-2845a7bd4ab0184c1b4b33542c31b550be6ea290.tar.xz
main/libcrystalhd: new aport
we need the userspace library for crystaldhd driver for xbmc
Diffstat (limited to 'main/libcrystalhd/APKBUILD')
-rw-r--r--main/libcrystalhd/APKBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/main/libcrystalhd/APKBUILD b/main/libcrystalhd/APKBUILD
new file mode 100644
index 000000000..23a981979
--- /dev/null
+++ b/main/libcrystalhd/APKBUILD
@@ -0,0 +1,71 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+pkgname=libcrystalhd
+pkgver=20130708
+_date=$pkgver
+pkgrel=0
+pkgdesc="Broadcom CrystalHD kernel driver library"
+url="http://git.linuxtv.org/jarod/crystalhd.git"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${_date}.tar.gz
+ "
+
+_giturl="git://linuxtv.org/jarod/crystalhd.git"
+_upload="dev.alpinelinux.org:/archive/$pkgname/"
+_libdir="$srcdir/$pkgname-$_date/linux_lib/libcrystalhd"
+_builddir="$srcdir/$pkgname-$_date"
+
+snapshot() {
+ local _date=$(date +%Y%m%d)
+ local _pkg=$pkgname-$_date.tar.gz
+ mkdir -p "$srcdir"
+ cd "$srcdir"
+ msg "Creating snapshot: $_pkg"
+ rm -rf ${_giturl##*/}
+ git clone --depth=1 --bare $_giturl || return 1
+ git --git-dir ${_giturl##*/} archive -o $_pkg \
+ --prefix=$pkgname-$_date/ HEAD \
+ || return 1
+ msg "Uploading to $_upload"
+ rsync -Lave ssh $_pkg $_upload || return 1
+ cd "$startdir"
+ sed -i -e "s/^pkgver=.*/pkgver=$_date/" \
+ APKBUILD || return 1
+ abuild checksum
+}
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_libdir"
+ msg "building library"
+ make || return 1
+}
+
+package() {
+ cd "$_libdir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+dev() {
+ default_dev
+}
+
+md5sums="e184af8123997a429f029ffe40c14384 libcrystalhd-20130708.tar.gz"
+sha256sums="aa2d37789286d3c7c26e2274ef8f4b95cc54d68d7a0975723d7b145c829b8aa2 libcrystalhd-20130708.tar.gz"
+sha512sums="70a84f8102250a797b658153d7cd2ed2b05d00d801b52a0b6f877e0feecd55a83c32032c5b66dba8cb53863dabc5536dde6405087403d8fe730c27f6ea3ee1b2 libcrystalhd-20130708.tar.gz"