swc-git: cleanup; move static lib to -devel.
This commit is contained in:
parent
f2cd3db0b5
commit
ead83579aa
1 changed files with 4 additions and 12 deletions
|
@ -5,7 +5,7 @@ _gitshort="${_githash:0:7}"
|
||||||
|
|
||||||
pkgname=swc-git
|
pkgname=swc-git
|
||||||
version=20141130
|
version=20141130
|
||||||
revision=1
|
revision=2
|
||||||
homepage="https://github.com/michaelforney/swc"
|
homepage="https://github.com/michaelforney/swc"
|
||||||
distfiles="https://github.com/michaelforney/swc/archive/${_githash}.tar.gz"
|
distfiles="https://github.com/michaelforney/swc/archive/${_githash}.tar.gz"
|
||||||
short_desc="A library for making a simple Wayland compositor"
|
short_desc="A library for making a simple Wayland compositor"
|
||||||
|
@ -18,11 +18,6 @@ checksum="fe0aa027f9b30323b779aef699d20649865fe50fa018ab30744fd223cd9c070b"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
wrksrc=swc-${_githash}
|
wrksrc=swc-${_githash}
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
arm*) _drm_drivers="nouveau";;
|
|
||||||
i686*|x86_64*) _drm_drivers="intel nouveau";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
sed -i '/^ENABLE_STATIC /d' config.mk
|
sed -i '/^ENABLE_STATIC /d' config.mk
|
||||||
sed -i '/^CC /d' config.mk
|
sed -i '/^CC /d' config.mk
|
||||||
|
@ -32,13 +27,10 @@ do_build() {
|
||||||
LDFLAGS="$BUILD_LDFLAGS" cursor/convert_font
|
LDFLAGS="$BUILD_LDFLAGS" cursor/convert_font
|
||||||
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
|
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
|
||||||
LDFLAGS="$LDFLAGS" OBJCOPY="$OBJCOPY" \
|
LDFLAGS="$LDFLAGS" OBJCOPY="$OBJCOPY" \
|
||||||
DRM_DRIVERS="$_drm_drivers" \
|
|
||||||
all example/wm
|
all example/wm
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make PREFIX=/usr DESTDIR=$DESTDIR DRM_DRIVERS="$_drm_drivers" install
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
||||||
vbin example/wm swc-wm
|
|
||||||
}
|
}
|
||||||
|
|
||||||
swc-git-devel_package() {
|
swc-git-devel_package() {
|
||||||
|
@ -48,12 +40,12 @@ swc-git-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
|
vmove "usr/lib/*.a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
swc-wm-git_package() {
|
swc-wm-git_package() {
|
||||||
short_desc="Simple Wayland compositor"
|
short_desc="Simple Wayland compositor"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/swc-wm
|
vbin ${wrksrc}/example/wm swc-wm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue