summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf03f97aa2ab1d4748cd2efa12a22dff13749597 (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
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: cyanolupus <admin@cyanolup.us>
pkgname="miraktest"
pkgver="2.0.0"
_suffix="-beta.3"
pkgrel=${_suffix/-beta./}
pkgdesc="Viewing application implementation research material for Mirakurun"
arch=('x86_64')
url="https://github.com/ci7lus/MirakTest"
license=('MIT')
depends=('vlc' 'nss' 'atk' 'at-spi2-atk' 'gtk3')
makedepends=('vlc')
_releasename="v${pkgver}${_suffix}"
_targzname="miraktest-${pkgver}${_suffix}"
source=(
    "https://github.com/ci7lus/MirakTest/releases/download/${_releasename}/${_targzname}.tar.gz"
    "https://raw.githubusercontent.com/ci7lus/MirakTest/master/assets/miraktest.iconset/icon_512x512.png"
)

package() {
    # pkgdir
    local _dirs
    _dirs=(
        "${pkgdir}/usr/lib/"
        "${pkgdir}/usr/bin/"
        "${pkgdir}/usr/share/applications/"
        "${pkgdir}/usr/share/pixmaps/"
    )
    mkdir -p ${_dirs[@]}

    # lib
    cp -r "${srcdir}/${_targzname}" "${pkgdir}/usr/lib/miraktest"

    # bin as symbolic link
    ln -s "/usr/lib/miraktest/miraktest" "${pkgdir}/usr/bin/miraktest"

    # desktop
    touch "${pkgdir}/usr/share/applications/miraktest.desktop"
    echo '[Desktop Entry]
Encoding=UTF-8
Name=MirakTest
Icon=miraktest
Exec=miraktest
Type=Application
Terminal=false
MimeType=text/plain' > "${pkgdir}/usr/share/applications/miraktest.desktop"

    # Icon
    cp "${srcdir}/icon_512x512.png" "${pkgdir}/usr/share/pixmaps/miraktest.png"
}

md5sums=('500af8a73ff6ec48fa6bc8893cf1a853'
         '271674ef5efdd9b3b33a7e622bacae39')