Skip to content

Instantly share code, notes, and snippets.

@Weegee
Last active April 14, 2016 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Weegee/7378119 to your computer and use it in GitHub Desktop.
Save Weegee/7378119 to your computer and use it in GitHub Desktop.
OBS Git PKGBUILD
pkgname=obs-git
pkgver=20140126.cc44c93
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