void-packages/srcpkgs/idesk/template
2021-07-04 00:12:57 -03:00

29 lines
1,012 B
Bash

# Template file for 'idesk'
pkgname=idesk
version=0.7.5
revision=2
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="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://idesk.sourceforge.net"
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
}