Last active
April 14, 2016 08:17
-
-
Save Weegee/7378119 to your computer and use it in GitHub Desktop.
OBS Git PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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