new package:

- add package xwd for making screenshots
This commit is contained in:
Stephan Raue 2010-02-07 21:07:35 +01:00
parent c7473fe4a0
commit dde4f4d094
4 changed files with 38 additions and 0 deletions

15
packages/x11/other/xwd/build Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
make
$STRIP $1

9
packages/x11/other/xwd/install Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
. config/options
PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/usr/bin
cp -PR $PKG_BUILD/$1 $INSTALL/usr/bin
cp -PR $PKG_DIR/scripts/screenshot $INSTALL/usr/bin

View File

@ -0,0 +1,13 @@
#!/bin/sh
# Screenshot script
#
# Author Tómas Edwardsson <tommi@tommi.org>
WHERE="$HOME/screenshots/`date +%Y/%m/%d`"
FILE="$WHERE`date +/screenshot-%H%M`"
mkdir -p $WHERE
/usr/bin/xwd -display :0.0 -root -out $FILE.xwd
#/usr/bin/convert $FILE.xwd $FILE.png
#/bin/rm -f $FILE.xwd

View File

@ -0,0 +1 @@
http://xorg.freedesktop.org/archive/individual/app/xwd-1.0.3.tar.bz2