summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFraser P. Newton2019-04-02 17:30:16 -0400
committerFraser P. Newton2019-04-02 17:30:16 -0400
commit21bee61bfb541974da38424e44337381ffcb46d2 (patch)
tree0261ad09ae4d894affd2ba5e400b4ffcd6addec5
downloadaur-21bee61bfb541974da38424e44337381ffcb46d2.tar.gz
Created initial PKGBUILD.
-rw-r--r--.SRCINFO33
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD44
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..04cdcb701d3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+pkgbase = moonlight-embedded-git
+ pkgdesc = Gamestream client for embedded devices
+ pkgver = 2.4.7.498.212eac6
+ pkgrel = 1
+ url = https://github.com/irtimmer/moonlight-embedded
+ arch = armv6h
+ arch = armv7h
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ depends = curl
+ depends = avahi
+ depends = curl
+ depends = libevdev
+ depends = enet
+ depends = ffmpeg
+ optdepends = raspberrypi-firmware-tools: Raspberry Pi support
+ optdepends = imx-vpu: i.MX6 support
+ optdepends = aml-libs-c1: ODROID-C1 support
+ optdepends = libcec: CEC support
+ provides = moonlight
+ conflicts = moonlight
+ source = moonlight-embedded-git::git+https://github.com/irtimmer/moonlight-embedded.git
+ sha512sums = SKIP
+ makedepends_armv6h = raspberrypi-firmware-tools
+ makedepends_armv7h = raspberrypi-firmware-tools
+ makedepends_armv7h = imx-vpu
+ makedepends_armv7h = linux-imx6-headers
+ makedepends_armv7h = v4l-utils
+ makedepends_armv7h = aml-libs-c1
+
+pkgname = moonlight-embedded-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fab68b78f35
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Fraser P. Newton <fpnewton90 at gmail dot com>
+
+pkgname=moonlight-embedded-git
+pkgver=2.4.7.498.212eac6
+pkgrel=1
+pkgdesc="Gamestream client for embedded devices"
+arch=('armv6h' 'armv7h')
+url="https://github.com/irtimmer/moonlight-embedded"
+license=('GPL')
+depends=('curl' 'avahi' 'curl' 'libevdev' 'enet' 'ffmpeg')
+makedepends=('libcec')
+makedepends_armv7h=('raspberrypi-firmware-tools' 'imx-vpu' 'linux-imx6-headers' 'v4l-utils' 'aml-libs-c1')
+makedepends_armv6h=('raspberrypi-firmware-tools')
+optdepends=('raspberrypi-firmware-tools: Raspberry Pi support'
+ 'imx-vpu: i.MX6 support'
+ 'aml-libs-c1: ODROID-C1 support'
+ 'libcec: CEC support')
+makedepends=('git' 'cmake')
+provides=('moonlight')
+conflicts=('moonlight')
+source=(${pkgname}::git+https://github.com/irtimmer/moonlight-embedded.git)
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2|sed 's|\-|.|g')" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd ${pkgname}
+ git submodule update --init
+}
+
+build() {
+ cd ${pkgname}
+ cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd ${pkgname}
+ make DESTDIR="$pkgdir/" install
+}