summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomoki Imai2016-01-26 05:43:27 +0900
committerTomoki Imai2016-01-26 05:43:27 +0900
commite3c4e404e984daa27888e7fbdde46e884fa72268 (patch)
tree65b0521a9ed049a5318a88ee2a8949c466b05f88
downloadaur-e3c4e404e984daa27888e7fbdde46e884fa72268.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--01_no_libcurl.patch24
-rw-r--r--PKGBUILD50
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1097972729e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Mon Jan 25 20:43:06 UTC 2016
+pkgbase = obs-rtmp-nicolive-git
+ pkgdesc = RTMP NicoLive Plugin for OBS MultiPlatform
+ pkgver = v2.0.r4.g4e72420
+ pkgrel = 1
+ url = https://github.com/raccy/obs-rtmp-nicolive
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = gcc
+ makedepends = cmake
+ depends = obs-studio
+ source = obs-rtmp-nicolive-git::git://github.com/raccy/obs-rtmp-nicolive
+ source = 01_no_libcurl.patch
+ md5sums = SKIP
+ md5sums = 748f4978ef449e8a551033069b94979e
+
+pkgname = obs-rtmp-nicolive-git
+
diff --git a/01_no_libcurl.patch b/01_no_libcurl.patch
new file mode 100644
index 00000000000..0eafba3765f
--- /dev/null
+++ b/01_no_libcurl.patch
@@ -0,0 +1,24 @@
+--- CMakeLists.txt 2016-01-26 04:42:00.188883428 +0900
++++ CMakeLists.txt.new 2016-01-26 04:41:36.532014891 +0900
+@@ -45,9 +45,9 @@
+ find_package(Qt5Widgets REQUIRED)
+
+ # find libcurl
+-find_package(Libcurl REQUIRED)
+-include_directories(${LIBCURL_INCLUDE_DIRS})
+-add_definitions(${LIBCURL_DEFINITIONS})
++# find_package(Libcurl REQUIRED)
++# include_directories(${LIBCURL_INCLUDE_DIRS})
++# add_definitions(${LIBCURL_DEFINITIONS})
+
+ # header and library
+ if(NOT BUILD_IN_OBS AND NOT LibObs_FOUND)
+@@ -78,7 +78,7 @@
+ target_link_libraries(rtmp-nicolive
+ Qt5::Core
+ Qt5::Widgets
+- ${LIBCURL_LIBRARIES}
++ # ${LIBCURL_LIBRARIES}
+ libobs)
+
+ if(BUILD_IN_OBS)
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d8f137caaad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Tomoki Imai <tomo832@gmail.com>
+pkgname=obs-rtmp-nicolive-git
+pkgver=v2.0.r4.g4e72420
+pkgdesc="RTMP NicoLive Plugin for OBS MultiPlatform"
+arch=('i686' 'x86_64')
+url="https://github.com/raccy/obs-rtmp-nicolive"
+license=('MIT')
+groups=()
+depends=('obs-studio')
+makedepends=('git' 'gcc' 'cmake')
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+
+source=("$pkgname"::'git://github.com/raccy/obs-rtmp-nicolive'
+ '01_no_libcurl.patch')
+md5sums=('SKIP'
+ '748f4978ef449e8a551033069b94979e')
+pkgrel=1
+
+
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ # Use the tag of the last commit
+ git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare(){
+ cd "$srcdir/$pkgname"
+ patch -u < ../01_no_libcurl.patch
+}
+build() {
+ cd "$srcdir/$pkgname"
+ mkdir build
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Release ..
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname/build"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
+