So here, it comes my suggestion. Some fiddling is still required to get that .desktop file working correctly with the menu.
Instructions:
0) The only additionally needed dependency is qt, so do "slapt-get -i qt".
0.1) Maybe install as well fakeroot if not done so already (see 3).
1) create the three files with the provided content.
2) execute git.sh
3) run "fakeroot slkbuild -X" (preferred with fakeroot as no need to be root)
4) done, enjoy the package and have fun
git.sh wrote:#!/bin/bash
pkgname=screenie
# set pkgver to current date
pkgver=$(date +%Y%m%d)
if [ -d $pkgname ]; then
(
cd $pkgname
git pull --depth 1
)
else
git clone git://github.com/ariya/screenie.git
fi
# create the source archive
tar czf $pkgname-$pkgver.src.tar.gz screenie
# change the SLKBUILD
sed -i 's#^pkgver=.*#pkgver='$pkgver'#' SLKBUILD
SLKBUILD wrote:#Packager: xx <email@address.com>
pkgname=screenie
pkgver=20100910
pkgrel=1xx
source=("$pkgname-$pkgver.src.tar.gz")
docs=(license*)
url=http://code.google.com/p/screenie
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Screenie (compose a fancy and stylish screenshots)"
"Screenie is cross-platform (for Linux, Windows and Mac OS X) and very "
"easy to use. "
"You will have an impressive screenshot in just one minute!"
""
"http://code.google.com/p/screenie/"
)
build() {
cd $startdir/src/$pkgname
qmake
make || return 1
#make install DESTDIR=$startdir/pkg
install -m 755 screenie -D $startdir/pkg/usr/bin/screenie
install -m 644 resources/screenie.ico -D $startdir/pkg/usr/share/icons/hicolor/128x128/apps/screenie.ico
install -m 644 screenie.desktop -D $startdir/pkg/usr/share/applications/screenie.desktop
}
screenie.desktop wrote:[Desktop Entry]
Version=1.0
Name=Screenie
Name[de]=Screenie
Comment=You will have an impressive screenshot in one minute!
Comment[de]=Bildschirmfoto in nur einer Minute!
Icon=screenie
Exec=screenie
Type=Application
StartupNotify=true
Terminal=false
Categories=GTK;Utility;