summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e34620ddc4900d53345b0dd482b58f40a00c3044 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Lara Maia <lara@craft.net.br>
pkgname=alsamixergui
pkgver=0.9.0rc2
pkgrel=7
pkgdesc="FLTK based mixer program for use with ALSA."
arch=('i686' 'x86_64')
url='https://github.com/LaraCraft304/alsamixergui'
license=('GPL')
depends=('fltk' 'alsa-lib')
#source=('https://github.com/LaraCraft304/alsamixergui/archive/0.9.1.tar.gz'
source=("http://ftp.de.debian.org/debian/pool/main/a/${pkgname}/${pkgname}_${pkgver}-1.orig.tar.gz"
	"http://ftp.de.debian.org/debian/pool/main/a/${pkgname}/${pkgname}_${pkgver}-1-10.1.diff.gz"
        "${pkgname}.desktop"
        "${pkgname}.xpm")
md5sums=('af942a41b81ba27e2e4d0a1e1ab0decb'
         'fdad41229222d8641136838224fdff41'
         '723f64293c24a7283d3d4b3dca442958'
         'ac46a80f8f5ea954e4dd70ef806d1374')

prepare() {
  [ -f ${pkgname}_${pkgver}-1-10.1.diff ] || \
    gzip -dc ${pkgname}_${pkgver}-1-10.1.diff.gz > ${pkgname}_${pkgver}-1-10.1.diff
  cd ${pkgname}-$pkgver-1.orig
  patch -Np1 -b -z .orig -i ../${pkgname}_${pkgver}-1-10.1.diff
  chmod +x configure
}

build() {
  cd ${pkgname}-$pkgver-1.orig
  ./configure
  make
}

package() {
  cd ${pkgname}-$pkgver-1.orig
  make install DESTDIR="$pkgdir"
  install -Dm644 ../${pkgname}.xpm "$pkgdir"/usr/share/pixmaps/${pkgname}.xpm 
  install -Dm644 ../${pkgname}.desktop "$pkgdir"/usr/share/applications/${pkgname}.desktop
}