blob: 8c936eb28e917dfd73940f9840ac6802721110df (
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
|
# Maintainer: Mario Finelli <mario at finel dot li>
pkgname=foobar2000
pkgver=2.24.3
pkgrel=1
pkgdesc="An advanced freeware audio player (uses Wine)"
arch=(i686 x86_64)
url=https://www.foobar2000.org
license=(custom)
depends=(wine desktop-file-utils)
makedepends=(7zip wget)
source_i686=("foobar2000_v$pkgver.exe::${url}/files/${pkgname}_v${pkgver}.exe")
source_x86_64=("foobar2000-x64_v$pkgver.exe::${url}/files/${pkgname}-x64_v${pkgver}.exe")
source=("LICENSE"
"${pkgname}.sh"
"${pkgname}.png"
"${pkgname}.desktop")
install=$pkgname.install
sha256sums=('134cf36d7631628bfa4a3830704aa6a9efb6e265660b31d5b487df97aaa32721'
'e9d1f7a8dc182f780d0fb15818c2837ebe0b70abcbef1c849a4185da7c09be7c'
'2031e952d1d1d6cb4c2ff2b879421149f3f0780ca5d3ac03bc9c23fcbbd053d6'
'2b6134997e55ce5ef5014dc266cda71b763949ad683d321246a5143333dd1fa0')
sha256sums_i686=('2d6b35de509cdc0125b8b515d8108feb7885751f13a43a01bdaa250bed516f9b')
sha256sums_x86_64=('2159301ca75b221fb9b9532871db106cb4b245a158e28f5c58368840b6876ef4')
package() {
if [[ "$CARCH" == "x86_64" ]]; then
_source_exe="${pkgname}-x64_v${pkgver}.exe"
else
_source_exe="${pkgname}_v${pkgver}.exe"
fi
# unpack NSIS installer .exe into destination
7z x "${_source_exe}" -x'!$PLUGINSDIR' -x'!$R0' -x'!icons' \
-x'!foobar2000 Shell Associations Updater.exe' \
-o"${pkgdir}/usr/share/${pkgname}"
# correct filesystem permissions
find "${pkgdir}" -type d -execdir chmod 755 {} +
# run foobar2000 in portable mode
touch "${pkgdir}/usr/share/${pkgname}/portable_mode_enabled"
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm0755 ${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm0644 ${pkgname}.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm0644 ${pkgname}.desktop \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
# vim: set ts=2 sw=2 et:
|