summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLettier2017-12-19 04:46:34 -0500
committerLettier2017-12-19 04:46:34 -0500
commit3ac290eed032f2d7bed3d3a41dbe9db78bfec0cb (patch)
treeaded461173c64249e4c66442a9393d9ca2cd603c
downloadaur-3ac290eed032f2d7bed3d3a41dbe9db78bfec0cb.tar.gz
Adds Movie Monad version 0.0.2.0 to AUR
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD68
2 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7d459028c02
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = movie-monad
+ pkgdesc = A free and simple to use video player built with Haskell.
+ pkgver = 0.0.2.0_0
+ pkgrel = 1
+ url = https://github.com/lettier/movie-monad
+ arch = x86_64
+ license = BSD3
+ makedepends = make
+ makedepends = wget
+ makedepends = gobject-introspection
+ makedepends = git
+ makedepends = gmp
+ makedepends = zlib
+ makedepends = ncurses
+ depends = gtk3
+ depends = gstreamer
+ depends = gst-libav
+ depends = gst-plugins-base-libs
+ depends = gst-plugins-base
+ depends = gst-plugins-good
+ depends = gst-plugins-bad
+ options = strip
+ options = staticlibs
+ source = http://hackage.haskell.org/packages/archive/movie-monad/0.0.2.0/movie-monad-0.0.2.0.tar.gz
+ sha256sums = 3cb2b58c6513c52e7620d0bd64196a105928259c2ce71f070b9c993f5586c431
+
+pkgname = movie-monad
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1701d0ad89
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Lettier <movie_monad_aur a@@at@t lettier dd.ot..t ccommm>
+
+_hkgname="movie-monad"
+_ver=0.0.2.0
+_xrev=0
+_tree_hash="44a705fc46e66dc9e585625e535b8c7d2473af15"
+_ghc_ver="8.0.2"
+
+pkgname="movie-monad"
+pkgver=${_ver}_${_xrev}
+pkgrel=1
+pkgdesc="A free and simple to use video player built with Haskell."
+url="https://github.com/lettier/${pkgname}"
+license=("BSD3")
+arch=("x86_64")
+makedepends=("make" "wget" "gobject-introspection" "git" "gmp" "zlib" "ncurses")
+depends=("gtk3" "gstreamer" "gst-libav" "gst-plugins-base-libs" "gst-plugins-base" "gst-plugins-good" "gst-plugins-bad")
+options=("strip" "staticlibs")
+source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${_ver}/${_hkgname}-${_ver}.tar.gz")
+sha256sums=('3cb2b58c6513c52e7620d0bd64196a105928259c2ce71f070b9c993f5586c431')
+
+build() {
+ mkdir -p "${HOME}/.local/bin"
+ cd "${srcdir}"
+
+ if [ ! `command -v stack` ]; then
+ # https://github.com/commercialhaskell/stack/issues/257#issuecomment-241898802
+ git clone https://aur.archlinux.org/libtinfo5.git
+ cd libtinfo5
+ makepkg -sic
+
+ cd "${srcdir}"
+
+ git clone https://aur.archlinux.org/stack-bin.git
+ cd "stack-bin"
+ makepkg -sic
+
+ cd "${srcdir}"
+
+ # https://github.com/commercialhaskell/stack/issues/3509#issuecomment-338786743
+ mkdir -p "${HOME}/.stack/"
+ touch "${HOME}/.stack/config.yaml"
+ echo "ghc-build: nopie" >> "${HOME}/.stack/config.yaml"
+ fi
+
+ cd "${srcdir}/${_hkgname}-${_ver}"
+ wget "https://raw.githubusercontent.com/lettier/movie-monad/${_tree_hash}/makefile" -O "makefile"
+ make cabal_install_relocatable_executable
+}
+
+package() {
+ cd "${srcdir}/${_hkgname}-${_ver}"
+ wget "https://raw.githubusercontent.com/lettier/${pkgname}/${_tree_hash}/packaging/linux/generic/${pkgname}.desktop" -O "${pkgname}.desktop"
+ wget "https://raw.githubusercontent.com/lettier/${pkgname}/${_tree_hash}/packaging/linux/generic/${pkgname}.svg" -O "${pkgname}.svg"
+ mkdir -p \
+ "${pkgdir}/usr/bin" \
+ "${pkgdir}/usr/lib/x86_64-linux-ghc-${_ghc_ver}" \
+ "${pkgdir}/usr/share/doc/${pkgname}" \
+ "${pkgdir}/usr/share/x86_64-linux-ghc-${_ghc_ver}/${pkgname}-${_ver}" \
+ "${pkgdir}/usr/share/icons/hicolor/scalable/apps" \
+ "${pkgdir}/usr/share/applications"
+ cp ".cabal-sandbox/bin/${pkgname}" "${pkgdir}/usr/bin/"
+ cp ".cabal-sandbox/lib/x86_64-linux-ghc-${_ghc_ver}/"*.so "${pkgdir}/usr/lib/x86_64-linux-ghc-${_ghc_ver}/"
+ cp -R ".cabal-sandbox/share/x86_64-linux-ghc-${_ghc_ver}/${pkgname}-${_ver}" "${pkgdir}/usr/share/x86_64-linux-ghc-${_ghc_ver}/"
+ cp -R ".cabal-sandbox/share/doc/x86_64-linux-ghc-${_ghc_ver}/"* "${pkgdir}/usr/share/doc/${pkgname}/"
+ cp "${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
+ cp "${pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"
+}