From 71f58605e914de11f3a9b7cc2f27b0c52fb8d4ba Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Jun 2011 23:06:35 +0000 Subject: Fri Jun 24 23:06:35 UTC 2011 --- community/scrotwm/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 community/scrotwm/PKGBUILD (limited to 'community/scrotwm/PKGBUILD') diff --git a/community/scrotwm/PKGBUILD b/community/scrotwm/PKGBUILD new file mode 100644 index 000000000..3d1d7b6cc --- /dev/null +++ b/community/scrotwm/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Kyle Keen +# Contributor: Christoph Zeiler + +pkgname=scrotwm +pkgver=0.9.32 +pkgrel=1 +pkgdesc="A minimalistic dynamic tiling window manager that tries to stay out of the way." +arch=('i686' 'x86_64') +url="http://www.scrotwm.org" +license=('custom:ISC') +depends=('dmenu' 'libxrandr' 'profont') +makedepends=('libxt') +optdepends=('scrot: screenshots' 'xlockmore: screenlocking' 'terminus-font: great font') +backup=(etc/scrotwm.conf) +source=(http://opensource.conformal.com/snapshots/$pkgname/$pkgname-$pkgver.tgz \ + LICENSE \ + baraction.sh) +md5sums=('43053b82962f6629ffa487bfb1c3195d' + 'a67cfe51079481e5b0eab1ad371379e3' + '6132ba773ee00f39d8f67ac0347a9814') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # it is like a patch, only less fragile + sed -i 's|\"/usr/local/lib/libswmhack.so\"|\"libswmhack.so\"|' scrotwm.c + sed -i 's/# modkey = Mod1/modkey = Mod4/' scrotwm.conf + sed -i 's/-\*-terminus-medium-\*-\*-\*-\*-\*-\*-\*-\*-\*-\*-\*/-*-profont-*-*-*-*-12-*-*-*-*-*-*-*/' scrotwm.conf + + cd linux + make PREFIX="/usr" +} + +package() { + cd "$srcdir/$pkgname-$pkgver/linux" + make PREFIX="/usr" DESTDIR="$pkgdir" install + install -Dm644 scrotwm.desktop "$pkgdir/usr/share/xsessions/scrotwm.desktop" + cd .. + install -Dm644 scrotwm.conf "$pkgdir/etc/scrotwm.conf" + install -Dm755 screenshot.sh "$pkgdir/usr/share/scrotwm/screenshot.sh" + #cd ../.. + cd "$srcdir" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 baraction.sh "$pkgdir/usr/share/scrotwm/baraction.sh" + + ln -s /usr/lib/libswmhack.so.0.0 "$pkgdir/usr/lib/libswmhack.so.0" + ln -s /usr/lib/libswmhack.so.0.0 "$pkgdir/usr/lib/libswmhack.so" +} -- cgit v1.2.3-54-g00ecf