[clc-devel] unmaintained/fbset: Cosmetic changes

ncrfgs ncrfgs at tin.it
Fri Sep 3 12:21:27 UTC 2004


One of the I like about Crux packages management system 
is that allows build script to be clean and simple.

If they are not it's a pity. =)


A possible patch is attached to this message.



Best regards.
-- 
Value your freedom, or you will lose it, teaches history. 
``Don't bother us with politics,'' respond those who don't 
want to learn.

 -- Richard M. Stallman
    http://www.gnu.org/philosophy/linux-gnu-freedom.html
-------------- next part --------------
diff -Nru fbset.orig/Pkgfile fbset/Pkgfile
--- fbset.orig/Pkgfile	2004-08-17 22:01:43.000000000 +0200
+++ fbset/Pkgfile	2004-09-03 11:56:27.466230896 +0200
@@ -5,17 +5,16 @@
 
 name=fbset
 version=2.1
-release=1
-source=(
-	http://home.tvd.be/cr26864/Linux/fbdev/fbset-$version.tar.gz
-)
-build () {
-	cd $name-$version;
-	sed 's,/dev/fb,/dev/fb/,g' fbset.c > fbset.c.sed && \mv fbset.c.sed fbset.c
-	sed 's,/dev/fb,/dev/fb/,g' fbset.8 > fbset.8.set && \mv fbset.8.set fbset.8
+release=2
+source=(http://home.tvd.be/cr26864/Linux/fbdev/$name-$version.tar.gz)
+
+build() {
+	cd $name-$version
+	sed -i 's,/dev/fb,/dev/fb/,g' fbset.c
+	sed -i 's,/dev/fb,/dev/fb/,g' fbset.8
 	make
-	mkdir -p "$PKG/usr/bin" "$PKG/usr/man/man8" "$PKG/usr/man/man5"
-	cp fbset "$PKG/usr/bin";
-	cp fb.modes.5 "$PKG/usr/man/man5"
-	cp fbset.8 "$PKG/usr/man/man8"
+	mkdir -p $PKG/usr/bin $PKG/usr/man/man{5,8}
+	install -m 755 fbset $PKG/usr/bin
+	install -m 644 fb.modes.5 $PKG/usr/man/man5
+	install -m 644 fbset.8 $PKG/usr/man/man8
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.crux.nu/pipermail/crux-devel/attachments/20040903/0328129e/attachment.asc>


More information about the crux-devel mailing list