2014-08-09 13:49:37 +02:00
|
|
|
# Template file for 'swc-git'
|
2014-11-30 12:00:17 +01:00
|
|
|
# Latest commit as of 20141130
|
|
|
|
_githash="bf9ee7c8e70917cc7d1a0b05ae0d333abeb49812"
|
2014-08-09 13:49:37 +02:00
|
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
|
|
|
|
pkgname=swc-git
|
2014-11-30 12:00:17 +01:00
|
|
|
version=20141130
|
2014-11-30 13:33:13 +01:00
|
|
|
revision=2
|
2014-08-09 13:49:37 +02: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 12:00:17 +01:00
|
|
|
wld-git-devel>=$version xcb-util-wm-devel libxkbcommon-devel
|
|
|
|
libinput-devel>=0.6.0 libevdev-devel"
|
|
|
|
checksum="fe0aa027f9b30323b779aef699d20649865fe50fa018ab30744fd223cd9c070b"
|
2014-08-09 13:49:37 +02: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
|
|
|
|
|
2014-08-30 01:56:12 +02:00
|
|
|
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
|
|
|
|
LDFLAGS="$BUILD_LDFLAGS" cursor/convert_font
|
|
|
|
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
|
2014-11-30 12:41:05 +01:00
|
|
|
LDFLAGS="$LDFLAGS" OBJCOPY="$OBJCOPY" \
|
2014-08-30 01:56:12 +02:00
|
|
|
all example/wm
|
2014-08-09 13:49:37 +02:00
|
|
|
}
|
|
|
|
do_install() {
|
2014-11-30 13:33:13 +01:00
|
|
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
2014-08-09 13:49:37 +02: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"
|
2014-11-30 13:33:13 +01:00
|
|
|
vmove "usr/lib/*.a"
|
2014-08-09 13:49:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
swc-wm-git_package() {
|
|
|
|
short_desc="Simple Wayland compositor"
|
|
|
|
pkg_install() {
|
2014-11-30 13:33:13 +01:00
|
|
|
vbin ${wrksrc}/example/wm swc-wm
|
2014-08-09 13:49:37 +02:00
|
|
|
}
|
|
|
|
}
|