void-packages/srcpkgs/swc-git/template

52 lines
1.4 KiB
Text
Raw Normal View History

2014-08-09 11:49:37 +00:00
# Template file for 'swc-git'
2014-11-30 11:00:17 +00:00
# Latest commit as of 20141130
_githash="21de9f4416426f11d1164b626aac191448f9608a"
2014-08-09 11:49:37 +00:00
_gitshort="${_githash:0:7}"
pkgname=swc-git
version=20150215
revision=1
2014-08-09 11:49:37 +00:00
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 <eb@s01.de>"
hostmakedepends="pkg-config wayland-devel"
makedepends="pixman-devel fontconfig-devel libdrm-devel wayland-devel
2014-11-30 11:00:17 +00:00
wld-git-devel>=$version xcb-util-wm-devel libxkbcommon-devel
libinput-devel>=0.6.0 libevdev-devel"
checksum="976388bf6994c086bd7e99a07310a20b8cb3734ded0185555745dbcdb64bd56c"
2014-08-09 11:49:37 +00:00
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="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
LDFLAGS="$BUILD_LDFLAGS" cursor/convert_font
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
2014-11-30 11:41:05 +00:00
LDFLAGS="$LDFLAGS" OBJCOPY="$OBJCOPY" \
all example/wm
2014-08-09 11:49:37 +00:00
}
do_install() {
make PREFIX=/usr DESTDIR=$DESTDIR install
2014-08-09 11:49:37 +00:00
}
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"
vmove "usr/lib/*.a"
2014-08-09 11:49:37 +00:00
}
}
swc-wm-git_package() {
short_desc="Simple Wayland compositor"
pkg_install() {
vbin ${wrksrc}/example/wm swc-wm
2014-08-09 11:49:37 +00:00
}
}