<commit_before>PACKAGE_VERSION="1.2.2"
PACKAGE_SOURCES="http://downloads.sourceforge.net/project/rox/rox/$PACKAGE_VERSION/rox-$PACKAGE_VERSION.tgz"
PLATFORM="$(uname -s)-$(uname -m)"

rox_build() {
	[ -d rox-$PACKAGE_VERSION ] && rm -rf rox-$PACKAGE_VERSION
	tar -xzvf rox-$PACKAGE_VERSION.tgz
	cd rox-$PACKAGE_VERSION

	patch -p 1 < "$BASE_DIR/patches/rox-tooltips.patch"
	patch -p 1 < "$BASE_DIR/patches/rox-libpng.patch"
	patch -p 1 < "$BASE_DIR/patches/rox-root.patch"
	patch -p 1 < "$BASE_DIR/patches/rox-aterm.patch"

	cd ROX-Filer/src
	XML_CONFIG="xml2-config" ./configure --host=$HOST --with-platform=$PLATFORM
	$MAKE
}

rox_package() {
	cd ..

	mkdir -p "$1/usr/share/rox"
	for i in AppInfo.xml \
	         AppRun \
	         Help \
	         Messages \
	         Options.xml \
	         pixmaps \
	         style.css \
	         Styles
	do
		cp -r $i "$1/usr/share/rox"
	done

	install -D -m 755 $PLATFORM/ROX-Filer "$1/lib/rox/ROX-Filer"
	ln -s ../../../lib/rox "$1/usr/share/rox/$PLATFORM"

	mkdir "$1/bin"
	echo "#!/bin/sh
exec ./usr/share/rox/AppRun \"\$@\"" > "$1/bin/rox"
	chmod 755 "$1/bin/rox"
}<commit_msg>Removed the relative path in the ROX-Filer wrapper.<commit_after>PACKAGE_VERSION="1.2.2"
PACKAGE_SOURCES="http://downloads.sourceforge.net/project/rox/rox/$PACKAGE_VERSION/rox-$PACKAGE_VERSION.tgz"
PLATFORM="$(uname -s)-$(uname -m)"

rox_build() {
	[ -d rox-$PACKAGE_VERSION ] && rm -rf rox-$PACKAGE_VERSION
	tar -xzvf rox-$PACKAGE_VERSION.tgz
	cd rox-$PACKAGE_VERSION

	patch -p 1 < "$BASE_DIR/patches/rox-tooltips.patch"
	patch -p 1 < "$BASE_DIR/patches/rox-libpng.patch"
	patch -p 1 < "$BASE_DIR/patches/rox-root.patch"
	patch -p 1 < "$BASE_DIR/patches/rox-aterm.patch"

	cd ROX-Filer/src
	XML_CONFIG="xml2-config" ./configure --host=$HOST --with-platform=$PLATFORM
	$MAKE
}

rox_package() {
	cd ..

	mkdir -p "$1/usr/share/rox"
	for i in AppInfo.xml \
	         AppRun \
	         Help \
	         Messages \
	         Options.xml \
	         pixmaps \
	         style.css \
	         Styles
	do
		cp -r $i "$1/usr/share/rox"
	done

	install -D -m 755 $PLATFORM/ROX-Filer "$1/lib/rox/ROX-Filer"
	ln -s ../../../lib/rox "$1/usr/share/rox/$PLATFORM"

	mkdir "$1/bin"
	echo "#!/bin/sh
exec /usr/share/rox/AppRun \"\$@\"" > "$1/bin/rox"
	chmod 755 "$1/bin/rox"
}
{'fraction_non_alphanumeric': 0.18058592041976387, 'fraction_numerical': 0.018364669873196328, 'mean_word_length': 2.6145339652448656, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5726116', 'n_tokens_mistral': 1035, 'n_tokens_neox': 925, 'n_words': 169}