50276d7a17
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Template file for 'libunique1'.
|
|
pkgname=libunique1
|
|
version=1.1.6
|
|
revision=8
|
|
wrksrc="libunique-${version}"
|
|
patch_args="-Np1"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-dbus $(vopt_if gir gobject-introspection)"
|
|
hostmakedepends="libtool automake pkg-config glib-devel"
|
|
makedepends="libSM-devel gtk+-devel"
|
|
short_desc="Library for writing single instance applications (GTK+2)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://live.gnome.org/LibUnique"
|
|
license="LGPL-2.1"
|
|
distfiles="${GNOME_SITE}/libunique/1.1/libunique-$version.tar.bz2"
|
|
checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
|
|
|
|
CFLAGS="-Wno-deprecated-declarations"
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# Fix build with glib 2.30.
|
|
for f in $(find ${wrksrc} -name *.[ch]); do
|
|
sed -i -s "s|G_CONST_RETURN|const|g" "$f"
|
|
done
|
|
sed -e "s,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g" \
|
|
-e "s,AM_PROG_CC_STDC,AC_PROG_CC,g" -i configure.ac
|
|
autoreconf -fi
|
|
}
|
|
|
|
libunique1-devel_package() {
|
|
depends="gtk+-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|