summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83000d9fcc1069180f1e2b1ec2795152dc3dc212 (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
# Maintainer: Konstantin Kogan <kostyalamer@yandex.ru>
# Contributor: Konstantin Kogan <kostyalamer@yandex.ru>
pkgname=tray_mixer_plus
pkgver=0.0.5
pkgrel=1
epoch=1
pkgdesc="Small tray sound volume control based tray_mixer project by Claudio Matsuoka and other authors."

arch=('i686' 'x86_64')
url="http://forum.altlinux.org"
license=('GPL')
depends=('xterm' 'alsa-utils')
makedepends=('gtk2' 'gtk2+extra' 'alsa-lib')
source=("http://altlinuxclub.ru/arhiv/${pkgname}-${pkgver}.tar.gz")
md5sums=('c54b88a45db8b1c9b0395c1c918305be')

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX2=/usr
make
cat > $pkgname.desktop <<@@@
[Desktop Entry]
Type=Application
Name=Tray Mixer Plus
Icon=/usr/share/icons/tray_mixer_plus/speaker.png
TryExec=tray_mixer_plus
Exec=tray_mixer_plus
Terminal=false
Categories=AudioVideo;Audio;Mixer;
@@@
}

package() {
cd "$srcdir/$pkgname-$pkgver"
#make install
mkdir -p $pkgdir/usr/share/icons/$pkgname
cp -R icons/$pkgname $pkgdir/usr/share/icons
mkdir -p $pkgdir/usr/share/locale/ru/LC_MESSAGES
cp -R intl/$pkgname/ru_RU.mo $pkgdir/usr/share/locale/ru/LC_MESSAGES/$pkgname.mo

install -pDm755 $pkgname $pkgdir/usr/bin/$pkgname
install -pDm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}