blob: 54c0c14828210a1643f46a494691715bfc8ef2b8 (
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
53
54
|
# Maintainer: SL_Pirate <isiraherath626@gmail.com>
# Contributor: Fabio Loli <fabio.loli@disroot.org>
# Contributor: Digimezzo <digimezzo@outlook.com>
_pkgname=Dopamine
__pkgname=dopamine
pkgname=dopamine-appimage-preview
__pkgver=3.0.0-preview
prevver=37
_pkgver=${__pkgver}.${prevver}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="The audio player that keeps it simple"
arch=('x86_64')
url="https://digimezzo.github.io/site/"
license=('GPL3')
depends=(alsa-lib gtk3 nss)
provides=(dopamine)
conflicts=(dopamine)
options=(!strip)
source_x86_64=(https://github.com/digimezzo/dopamine/releases/download/v${__pkgver}.${prevver}/Dopamine-${__pkgver}.${prevver}.AppImage)
source=("dopamine.desktop")
sha512sums=('c27e980de4fb9e9a4a7b714c65c35aef9fe37e13f4589e5c1160e927df4dd9e0370999995d092b7009829bc1e410cd7fbfbd4f3fb11ffa05d5c5cfb1657ba793')
sha512sums_x86_64=('25cfa9366aa11870f7a5ee8ed48d73a546d749ed2f42377fb41f5f228f6bb5398677dcd072aad04131eb994b7174ab75474c22f1849345342f104f46b8629059')
prepare() {
chmod u+x ${srcdir}/${_pkgname}-${_pkgver}.AppImage
${srcdir}/${_pkgname}-${_pkgver}.AppImage --appimage-extract
}
package() {
find ${srcdir}/squashfs-root/locales/ -type d -exec chmod 755 {} +
find ${srcdir}/squashfs-root/resources/ -type d -exec chmod 755 {} +
install -d ${pkgdir}/opt/${__pkgname}
cp -r ${srcdir}/squashfs-root/* ${pkgdir}/opt/${__pkgname}
# remove broken or unused files and directories
rm -r ${pkgdir}/opt/${__pkgname}/usr/
rm ${pkgdir}/opt/${__pkgname}/AppRun
rm ${pkgdir}/opt/${__pkgname}/${__pkgname}.desktop
rm ${pkgdir}/opt/${__pkgname}/${__pkgname}.png
find ${srcdir}/squashfs-root/usr/share/icons/ -type d -exec chmod 755 {} +
install -d ${pkgdir}/usr/share/icons
cp -r ${srcdir}/squashfs-root/usr/share/icons/hicolor ${pkgdir}/usr/share/icons/hicolor
install -d ${pkgdir}/usr/bin
ln -s ../../opt/${__pkgname}/${__pkgname} ${pkgdir}/usr/bin/${__pkgname}
install -Dm644 ${srcdir}/${__pkgname}.desktop ${pkgdir}/usr/share/applications/${__pkgname}.desktop
}
|