summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c2a23e61840885eeef8bfbd88c2ad96532545bc (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: SpepS <dreamspepser at yahoo dot it>
# Contributor: nsf <no.smile.face@gmail.com>

pkgname=bmpanel2
pkgver=2.1pre1
pkgrel=5
pkgdesc="A NETWM-compatible panel for X11"
arch=("i686" "x86_64")
url="http://bmpanel2.googlecode.com/"
license=('custom:MIT')
depends=('libxext' 'pango')
optdepends=('pygtk: configuration GUI')
makedepends=('cmake' 'asciidoc' 'python2')
#source=("${url}files/$pkgname-$pkgver.tar.gz")
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('766ce5d3d6be427192fa11883b230eed')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  [ -d bld ] || mkdir bld && cd bld

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
           -DCMAKE_BUILD_TYPE=RELEASE \
           -DPYTHON_EXECUTABLE=/usr/bin/python2
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver/bld"
  make DESTDIR="$pkgdir/" install

  # python2 fix
  sed -i 's/env python/&2/' `find "$pkgdir" -name "*.py"`

  # license
  install -Dm644 ../COPYING \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}