summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbf438d951054ec9b769f9ff501c56e9627b5630 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Black_Codec

pkgname=suxpanel
pkgver=0.4b
pkgrel=4
pkgdesc="A lightweight X11 desktop panel"
arch=('x86_64' 'i686')
#url="http://suxpanel.berlios.de/"
url="https://sourceforge.net/projects/$pkgname.berlios"
license=('GPL')
depends=('gtk2' 'libwnck')
#source=(http://download.berlios.de/suxpanel/$pkgname-$pkgver.tar.gz)
source=(https://downloads.sf.net/$pkgname.berlios/$pkgname-$pkgver.tar.gz)
md5sums=('a89d1b4fde46db553d326ca69c392441')


build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  sed -e 's, -lgobject-2.0, -lgmodule-2.0 -lgobject-2.0,' -i Makefile
  sed -e 's,/usr/share/suxpanel/plugins,/usr/lib/suxpanel/plugins,' -i Makefile
  sed -e 's; -Wl,-export-dynamic ; -Wl,-export-dynamic,-O1,--sort-common,--as-needed,-z,relro,-z,now ;' -i Makefile
  sed -e 's; -shared ; -fPIC -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now ;' -i Makefile
  sed -e 's,/usr/share/suxpanel/plugins,/usr/lib/suxpanel/plugins,' -i suxpanel-install.sh
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
    
  mkdir -p "$pkgdir/usr/lib/suxpanel/plugins"
  make DESTDIR="$pkgdir" install
  cp ./suxpanel-install.sh $pkgdir/usr/share/suxpanel/
}