New package: idesk-0.7.5

This commit is contained in:
cr6git 2018-03-14 18:55:15 +01:00 committed by Leаh Neukirchen
parent 905fd959d7
commit 429eae9674
1 changed files with 30 additions and 0 deletions

30
srcpkgs/idesk/template Normal file
View File

@ -0,0 +1,30 @@
# Template file for 'idesk'
pkgname=idesk
version=0.7.5
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="giflib-devel imlib2-devel libjpeg-turbo-devel
libpng-devel libXft-devel libXpm-devel tiff-devel"
short_desc="Gives users of minimal wm's icons on their desktop"
maintainer="cr6git <quark6@protonmail.com>"
homepage="http://idesk.sourceforge.net"
license="BSD"
distfiles="${SOURCEFORGE_SITE}/idesk/idesk-${version}.tar.bz2"
checksum=d4b7ea5dcf6d49d83e2df9512d4c6388f11632a702b14f42a1bc6bffb617b3d3
pre_configure() {
sed -i -e '1,1i#include <unistd.h>' \
-e '1,1i#include <sys/stat.h>' \
-e '1,1i#include <sys/types.h>' \
src/DesktopConfig.cpp
sed -i 's#usr/local#usr#' examples/default.lnk
sed -i 's#IMLIB2_LIBS=.*#IMLIB2_LIBS=-lImlib2#g' configure
sed -i 's#IMLIB_LIBS=.*#IMLIB_LIBS="-L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro -ljpeg -ltiff -lgif -lpng -lz -lm -lXext -lXext -lX11 -lImlib2"#g' configure
}
post_install() {
vlicense COPYING
}