Skip to content

Instantly share code, notes, and snippets.

@Ziemas
Forked from Weegee/PKGBUILD
Last active January 4, 2016 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ziemas/8616181 to your computer and use it in GitHub Desktop.
Save Ziemas/8616181 to your computer and use it in GitHub Desktop.
pkgname=obs-git
pkgver=20140307.b2202c4
pkgrel=1
pkgdesc="Free, open source software for live streaming and recording"
arch=('i686' 'x86_64')
url="http://obsproject.com/"
license=('GPL3')
depends=('qt5-base' 'ffmpeg')
makedepends=('git')
source=('git+https://github.com/jp9000/obs-studio.git')
md5sums=('SKIP')
_gitname=obs-studio
pkgver() {
cd "$_gitname"
majorver="$(git log -1 --format='%cd' --date=short | tr -d -- '-')"
microver="$(git log -1 --pretty=format:%h )"
echo $majorver.$microver
}
build() {
cd "$_gitname"
cmake ./ -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr'
make
}
package() {
cd "$_gitname"
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment