Skip to content

Instantly share code, notes, and snippets.

@micahyoung
Created September 10, 2014 00:40
Show Gist options
  • Save micahyoung/4c47cfbdb59dfa58b765 to your computer and use it in GitHub Desktop.
Save micahyoung/4c47cfbdb59dfa58b765 to your computer and use it in GitHub Desktop.
pkgname=gst-rpicamsrc
pkgver=SKIP
pkgrel=1
pkgdesc="GStreamer element for the Raspberry Pi camera module"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h')
url="https://github.com/thaytan/gst-rpicamsrc"
license=(LGPL)
depends=(gstreamer)
source=(git+https://github.com/thaytan/gst-rpicamsrc.git)
md5sums=(SKIP)
build() {
cd "$pkgname"
./autogen.sh --prefix=/usr
./configure
make
}
package ()
{
cd "$pkgname"
make DESTDIR="$pkgdir" install
}
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment