summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc9c37c5d6541957c3c2cbb0f7f71650278d4fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pkgname=motionbox-bin
_pkgname=motionbox-bin
pkgver=2.0.0.0
majver=2.0.0
subver=0
pkgrel=1
pkgdesc="MotionBox is a Video Browser for Motion Freedom"
arch=("x86_64")
url="http://omega.gg/MotionBox/"
license=("GPL3")
provides=("motionbox")
conflicts=("motionbox")
depends=(vlc qt5-base libidn11)
source=(
    https://s3-eu-west-1.amazonaws.com/omega.gg/get/MotionBox/MotionBox-$majver-$subver-linux64.tar.gz
    https://github.com/G-P-L/AUR/raw/master/MotionBox/MotionBox.desktop
    https://github.com/G-P-L/AUR/raw/master/MotionBox/MotionBox.png
)
sha256sums=(SKIP
            'a467445d37f10dfec07fc2dbbb6d20b7fd75b215848861672839cd2760a67a21'
            '7b0f4fb92e7bc5d23fbef1a0bb9381a63fa979f28a36b2f0b4b4619b13039b72')

options=(debug !strip)
            
package() {
    install -d "$pkgdir/opt/MotionBox"
    install -d "$pkgdir/usr/bin"

    # Copy files and folders from the source tarball to /opt/MotionBox/.
    mv "$srcdir/MotionBox-$majver-$subver/" "$srcdir/MotionBox/"
    cp -r "$srcdir/MotionBox/" "$pkgdir/opt/"

    # Copy application icon to /opt/MotionBox/.
    install -Dm644 MotionBox.png "$pkgdir/opt/MotionBox/MotionBox.png"

    # Copy desktop launcher to /usr/share/applications/.
    install -Dm644 MotionBox.desktop "$pkgdir/usr/share/applications/MotionBox.desktop"

    # Link binary to /usr/bin/.
    ln -s /opt/MotionBox/usr/bin/MotionBox $pkgdir/usr/bin/MotionBox
}