Adding aur/mhddfs for multiple hdd overlaying

This commit is contained in:
Mike Brown 2012-11-09 16:01:20 -05:00
parent 11f3510f2b
commit 25f14ec424
3 changed files with 73 additions and 0 deletions

36
aur/mhddfs/PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: <n17ikh@gmail.com>
# Contributor: <igor.mogielnicki@gmail.com>
pkgname=mhddfs
pkgver=0.1.39
pkgrel=1
pkgdesc="fuse filesystem that combines several mount points into a single one."
arch=('i686' 'x86_64')
url="http://mhddfs.uvw.ru/"
license=('GPL3')
depends=('fuse')
makedepends=('uthash')
source=(http://mhddfs.uvw.ru/downloads/${pkgname}_${pkgver}.tar.gz pthreads.patch)
md5sums=('efc43fa9b4c1437bb233149bd624a459'
'd6476ffcc21897748014815c824652f7')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
patch -p0 < ${srcdir}/pthreads.patch
make
mkdir -p $pkgdir/usr/bin \
$pkgdir/usr/share/doc/$pkgname \
$pkgdir/usr/share/man/man1
cp "$srcdir/${pkgname}-${pkgver}/mhddfs" "$pkgdir/usr/bin"
cp $srcdir/${pkgname}-${pkgver}/COPYING \
$srcdir/${pkgname}-${pkgver}/LICENSE \
$srcdir/${pkgname}-${pkgver}/README \
$srcdir/${pkgname}-${pkgver}/README.ru.UTF-8 \
$srcdir/${pkgname}-${pkgver}/ChangeLog \
$pkgdir/usr/share/doc/$pkgname
gzip -c $srcdir/${pkgname}-${pkgver}/mhddfs.1 > $pkgdir/usr/share/man/man1/mhddfs.1.gz
}

11
aur/mhddfs/pthreads.patch Normal file
View file

@ -0,0 +1,11 @@
--- Makefile 2012-06-17 10:09:56.000000000 -0400
+++ Makefile_new 2012-06-19 19:00:27.000000000 -0400
@@ -28,7 +28,7 @@
CFLAGS += -DWITHOUT_XATTR
endif
-LDFLAGS = $(shell pkg-config fuse --libs)
+LDFLAGS = -lpthread $(shell pkg-config fuse --libs)
FORTAR = src COPYING LICENSE README Makefile \
README.ru.UTF-8 ChangeLog mhddfs.1 \

26
aur/uthash/PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Michael Frey <mail@mfrey.net>
pkgname=uthash
pkgver=1.9.6
pkgrel=1
pkgdesc="uthash provides C preprocessor implementations of a hash table and a linked list"
arch=('any')
url="http://uthash.sourceforge.net/"
license=('BSD')
source=(http://downloads.sourceforge.net/uthash/$pkgname-$pkgver.tar.bz2)
sha512sums=('ff03644b5e7cdf59a87e856052c84f68ee15c343b6d83a286f68a1b5aabed40e1f4bebc063602e0840954db391354c9078a29811a47aa901aac1cc23ab35018f')
package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
# create directory for header files
install -dm755 "${pkgdir}"/usr/include/
# install header files in /usr/include
for h in $(ls -1 *.h); do
install -m 644 ${h} "${pkgdir}"/usr/include/
done
# install licence file
install -D -m644 ../LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}