summaryrefslogtreecommitdiff
path: root/community/cromfs
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/cromfs
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/cromfs')
-rw-r--r--community/cromfs/PKGBUILD34
-rw-r--r--community/cromfs/make-generic.patch25
2 files changed, 59 insertions, 0 deletions
diff --git a/community/cromfs/PKGBUILD b/community/cromfs/PKGBUILD
new file mode 100644
index 000000000..2d3b2454a
--- /dev/null
+++ b/community/cromfs/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 93532 2013-07-05 01:31:34Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+
+pkgname=cromfs
+pkgver=1.5.10.1
+pkgrel=2
+arch=('i686' 'x86_64')
+pkgdesc='Compressed read-only filesystem based on FUSE'
+url='http://bisqwit.iki.fi/source/cromfs.html'
+license=('GPL')
+depends=('fuse' 'lzo2')
+source=("http://bisqwit.iki.fi/src/arch/${pkgname}-${pkgver}.tar.gz"
+ 'make-generic.patch')
+sha1sums=('3d591530ea3a6ed9b6b53b3fcccf9c7c021efd13'
+ 'ae51f1d2446df20bcbaef6ac125b1756177725d4')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i ../make-generic.patch
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -d "${pkgdir}"/usr/{bin,share/doc/cromfs}
+ install -m755 install/progs/* "${pkgdir}"/usr/bin/
+ install -m644 install/docs/* "${pkgdir}"/usr/share/doc/cromfs/
+}
diff --git a/community/cromfs/make-generic.patch b/community/cromfs/make-generic.patch
new file mode 100644
index 000000000..6dff65efb
--- /dev/null
+++ b/community/cromfs/make-generic.patch
@@ -0,0 +1,25 @@
+diff -Naur old/configure new/configure
+--- old/configure 2012-04-11 09:33:55.000000000 +0200
++++ new/configure 2012-04-11 12:05:07.098916602 +0200
+@@ -96,9 +96,9 @@
+ fi
+ }
+
+-CFLAGS=""
+-CPPFLAGS=""
+-LDFLAGS=""
++CFLAGS="$CFLAGS"
++CPPFLAGS="$CXXFLAGS"
++LDFLAGS="$LDFLAGS"
+ OPTIM=""
+
+ do_echo -n "Determining compiler version to use... "
+@@ -451,6 +451,8 @@
+ OPTIM="$OPTIM_BACKUP $BEST_CPUFEATURE"
+ fi
+
++OPTIM=""
++
+ do_echo "Updating Makefile.sets ..."
+
+ if [ "$DEBUG" = "1" ]; then