blob: 13560948fd7d3c0fc9e2a2addac596efd60de396 (
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
|
# Maintainer: badcast <lmecomposer@gmail.com>
# Contributor: Artem Izmaylov <support@aimp.ru>
pkgname=aimp
pkgver=5.10
pkgrel=2414
url="https://www.aimp.ru/"
pkgdesc="AIMP (on Wine) is powerful free audio player."
arch=('x86_64')
license=('custom')
depends=('wine')
source=("https://www.aimp.ru/files/linux/aimp_${pkgver}-${pkgrel}_amd64.deb")
md5sums=('e56fc3e3db95d2baf5160956057cca46')
build(){
cd "${srcdir}"
echo "Append aimp (shell):/usr/bin/aimp"
#save patch
echo "#!/usr/bin/sh
/usr/bin/wine '/opt/aimp/AIMP/AIMP.exe' \"\$@\"" > aimp
}
package(){
cd "${srcdir}"
dest="$pkgdir/opt/aimp/"
#extract sources
bsdtar -xf "data.tar.gz" -C "$pkgdir"
chmod +x "$pkgdir/opt/aimp/aimp.desktop"
#append Desktop.file
install -Dm644 $dest/aimp.desktop "$pkgdir/usr/share/applications/aimp.desktop"
install -Dm755 aimp "$pkgdir/usr/bin/aimp"
#patch
install -Dm7 aimp "$dest/aimp.bash"
}
|