summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c47f642e8a4f8b6377606dfbce3f30704fccb4a4 (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
# Maintainer: Naoki Kanazawa <nk dot naoki912 at gmail dot com>
pkgname=toa
pkgver=0.0.1
pkgrel=3
pkgdesc='"toa" is simple music player made by Electron.'
arch=('any')
url='https://github.com/yuki540net/toa'
license=('MIT')
depends=('gtk2' 'gconf' 'xdg-utils' 'libxtst' 'libxss' 'nss' 'alsa-lib' 'xdg-utils')
makedepends=('unzip' 'gendesk')
source=(
    "${url}/releases/download/v${pkgver}/toa-linux-x64.zip"
)
noextract=("toa-linux-x64.zip")
md5sums=(
    '869b089bd96d2fe936836595239c3a8e'
)

prepare() {
    unzip -o -q toa-linux-x64.zip

    gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
}

package() {
    install -dm755 ${pkgdir}/usr/bin
    install -dm755 ${pkgdir}/usr/lib

    cp -a ${srcdir}/toa-linux-x64 ${pkgdir}/usr/lib/${pkgname}

    ln -s /usr/lib/toa/toa ${pkgdir}/usr/bin/toa

    install -Dm644 "${srcdir}/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
    install -Dm644 "${srcdir}/toa-linux-x64/resources/app/icons/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}