void-packages/srcpkgs/idesk/template

31 lines
1,003 B
Bash
Raw Normal View History

2018-03-14 17:55:15 +00:00
# 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
}