void-packages/srcpkgs/rox/template
Jürgen Buchmüller 550b5dbc8b rox: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:39 +02:00

39 lines
1.3 KiB
Bash

# Template file for 'rox'
pkgname=rox
version=2.11
revision=2
wrksrc="rox-filer-${version}"
hostmakedepends="pkg-config librsvg-utils"
makedepends="gtk+-devel libxml2-devel libSM-devel"
depends="desktop-file-utils"
short_desc="Small file-manager that can manage the desktop background and panels"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="http://rox.sourceforge.net/desktop/"
distfiles="${SOURCEFORGE_SITE}/rox/rox-filer-$version.tar.bz2"
checksum=a929bd32ee18ef7a2ed48b971574574592c42e34ae09f36604bf663d7c101ba8
nocross=yes
CFLAGS="-fcommon"
do_build() {
./ROX-Filer/AppRun --compile LIBS="-ldl -lm"
rsvg-convert -w 48 -h 38 -f png -o rox.png ${FILESDIR}/rox.svg
}
do_install() {
vmkdir usr/share/Choices/MIME-types
install -m755 Choices/MIME-types/* ${DESTDIR}/usr/share/Choices/MIME-types
cp -rp ROX-Filer ${DESTDIR}/usr/share
rm -fr ${DESTDIR}/usr/share/ROX-Filer/{src,build}
vman rox.1
ln -sf rox.1 ${DESTDIR}/usr/share/man/man1/ROX-Filer.1
vinstall ${FILESDIR}/rox.desktop 644 usr/share/applications
vinstall ${FILESDIR}/rox.svg 644 usr/share/pixmaps
vinstall rox.png 644 usr/share/pixmaps
vbin ${DESTDIR}/usr/share/ROX-Filer/ROX-Filer rox
rm -rf ${DESTDIR}/usr/share/ROX-Filer/ROX-Filer
rm -rf ${DESTDIR}/usr/share/ROX-Filer/ROX-Filer.dbg
}