mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
new package:
- add package xwd for making screenshots
This commit is contained in:
parent
c7473fe4a0
commit
dde4f4d094
15
packages/x11/other/xwd/build
Executable file
15
packages/x11/other/xwd/build
Executable 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
9
packages/x11/other/xwd/install
Executable 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
|
13
packages/x11/other/xwd/scripts/screenshot
Executable file
13
packages/x11/other/xwd/scripts/screenshot
Executable 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
|
1
packages/x11/other/xwd/url
Normal file
1
packages/x11/other/xwd/url
Normal file
@ -0,0 +1 @@
|
||||
http://xorg.freedesktop.org/archive/individual/app/xwd-1.0.3.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user