summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJeromy Reimer2015-06-27 11:29:57 -0600
committerJeromy Reimer2015-06-27 11:29:57 -0600
commit5f73a4ff37ad7e619d3b8eeb7479a07d88715928 (patch)
treecbac941705aebc3c94c92af7cd23107860e5797a /PKGBUILD
downloadaur-5f73a4ff37ad7e619d3b8eeb7479a07d88715928.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..de3631fc4986
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: nic96 <jeromyreimer at gmail dot com>
+
+PKGEXT=.pkg.tar
+pkgname=shotcut-bin
+pkgver=150601
+pkgrel=1
+pkgdesc="A free, open source, cross-platform video editor."
+arch=(i686 x86_64)
+url="http://www.mltframework.org/bin/view/Shotcut/WebHome"
+license=('GPL3')
+depends=('jack' 'libexif' 'desktop-file-utils' 'gstreamer0.10-base')
+provides=('shotcut')
+install="$pkgname.install"
+source=("https://github.com/mltframework/shotcut/releases/download/v${pkgver::2}.${pkgver:2:2}/shotcut-debian7-x86${CARCH/*86}-$pkgver.tar.bz2"
+ "shotcut.png")
+if [[ $CARCH = 'x86_64' ]]
+then
+ md5sums=('98c81f3533d701071217c02efbe96b3a' '457bc6ae5a299dee017521ec058e833b')
+else
+ md5sums=('aef0820532cb5a1b2ede9a5ab7a2c5a7' '457bc6ae5a299dee017521ec058e833b')
+fi
+
+
+prepare() {
+ cd Shotcut
+ # fix and modify desktop file
+ sed -i '1d;/Exec/s/sh.*/shotcut-bin/' Shotcut.desktop
+ sed -i 's/Icon=applications-multimedia/Icon=shotcut/g' Shotcut.desktop
+ echo "Categories=Qt;AudioVideo;AudioVideoEditing;" >> Shotcut.desktop
+}
+
+package() {
+ cd Shotcut
+
+ # bundle
+ install -d "$pkgdir/opt/shotcut"
+ cp -a Shotcut.app/* "$pkgdir/opt/shotcut"
+
+ # desktop file
+ install -Dm644 Shotcut.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+ # shotcut icon
+ install -Dm644 "$srcdir/shotcut.png" "$pkgdir/usr/share/pixmaps/shotcut.png"
+
+ # launcher
+ install -d "$pkgdir/usr/bin"
+ ln -s /opt/shotcut/shotcut "$pkgdir/usr/bin/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et: