From 5a55427d97faa22e28c08b4260cef9945ef74b7f Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 9 Aug 2014 13:49:37 +0200 Subject: [PATCH] New package: swc-git-20140809 --- common/shlibs | 1 + srcpkgs/swc-git-devel | 1 + srcpkgs/swc-git/template | 48 ++++++++++++++++++++++++++++++++++++++++ srcpkgs/swc-wm-git | 1 + 4 files changed, 51 insertions(+) create mode 120000 srcpkgs/swc-git-devel create mode 100644 srcpkgs/swc-git/template create mode 120000 srcpkgs/swc-wm-git diff --git a/common/shlibs b/common/shlibs index 5b7614a42f0..13cc13638b3 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1694,3 +1694,4 @@ libokularcore.so.4 libokular-4.13.3_1 libmnl.so.0 libmnl-1.0.3_1 libnftnl.so.0 libnftnl-1.0.2_1 libwld.so.0 wld-git-20140809_1 +libswc.so.0 swc-git-20140809_1 diff --git a/srcpkgs/swc-git-devel b/srcpkgs/swc-git-devel new file mode 120000 index 00000000000..bc160902a6b --- /dev/null +++ b/srcpkgs/swc-git-devel @@ -0,0 +1 @@ +swc-git \ No newline at end of file diff --git a/srcpkgs/swc-git/template b/srcpkgs/swc-git/template new file mode 100644 index 00000000000..404f8129899 --- /dev/null +++ b/srcpkgs/swc-git/template @@ -0,0 +1,48 @@ +# Template file for 'swc-git' +# Latest commit as of 20140809 +_githash="dd0b21656eb7b19e8e6f454ab0de4284998d47f5" +_gitshort="${_githash:0:7}" + +pkgname=swc-git +version=20140809 +revision=1 +homepage="https://github.com/michaelforney/swc" +distfiles="https://github.com/michaelforney/swc/archive/${_githash}.tar.gz" +short_desc="A library for making a simple Wayland compositor" +maintainer="Enno Boland " +hostmakedepends="pkg-config wayland-devel" +makedepends="pixman-devel fontconfig-devel libdrm-devel wayland-devel + wld-git-devel xcb-util-wm-devel libxkbcommon-devel libinput-devel>=0.5.0_1" +checksum="f421ca2c3897e48e6f43a5e73b140441baf2246ee73c07b5e1e592762bad590a" +license="MIT" +wrksrc=swc-${_githash} + +do_build() { + sed -i '/^ENABLE_STATIC /d' config.mk + sed -i '/^CC /d' config.mk + sed -i '/^CFLAGS /d' config.mk + + make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" all example/wm +} + +do_install() { + make PREFIX=/usr DESTDIR=$DESTDIR install + vbin example/wm swc-wm +} + +swc-git-devel_package() { + depends="swc-git>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} + +swc-wm-git_package() { + short_desc="Simple Wayland compositor" + pkg_install() { + vmove usr/bin/swc-wm + } +} diff --git a/srcpkgs/swc-wm-git b/srcpkgs/swc-wm-git new file mode 120000 index 00000000000..bc160902a6b --- /dev/null +++ b/srcpkgs/swc-wm-git @@ -0,0 +1 @@ +swc-git \ No newline at end of file