summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author100best2016-07-13 01:23:46 -0500
committer100best2016-07-13 01:23:46 -0500
commit4e811d81d72d6641a23a0eb9d626bfe3dcf56cdf (patch)
tree3b84815871b69bfd2ce55039e87dc762cfb19f37
downloadaur-4e811d81d72d6641a23a0eb9d626bfe3dcf56cdf.tar.gz
initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
-rw-r--r--udefrag.patch24
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bf240dbeaad
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by makepkg 5.0.1
+# Wed Jul 13 06:14:06 UTC 2016
+pkgbase = udefrag
+ pkgdesc = Ultradefrag 5.0 console for GNU/Linux to defragment NTFS filesystem
+ pkgver = 5.0.0AB.7
+ pkgrel = 1
+ url = http://jp-andre.pagesperso-orange.fr/advanced-ntfs-3g.html
+ arch = x86_64
+ arch = i686
+ license = GPL2
+ makedepends = unzip
+ depends = ncurses
+ depends = ntfs-3g
+ source = http://jp-andre.pagesperso-orange.fr/ultradefrag-5.0.0AB.7.zip
+ source = udefrag.patch
+ md5sums = 20cdd938bed3efa5161aefc0ad08ba00
+ md5sums = a9a7993bbe81af2a0c78402ba350850c
+
+pkgname = udefrag
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a0cadafae36
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: 100best <jm.100best@hotmail.com>
+
+pkgname=udefrag
+pkgver=5.0.0AB.7
+pkgrel=1
+pkgdesc="Ultradefrag 5.0 console for GNU/Linux to defragment NTFS filesystem"
+url="http://jp-andre.pagesperso-orange.fr/advanced-ntfs-3g.html"
+arch=('x86_64' 'i686')
+license=('GPL2')
+makedepends=('unzip')
+depends=('ncurses' 'ntfs-3g')
+source=('http://jp-andre.pagesperso-orange.fr/ultradefrag-5.0.0AB.7.zip' 'udefrag.patch')
+md5sums=('20cdd938bed3efa5161aefc0ad08ba00'
+ 'a9a7993bbe81af2a0c78402ba350850c')
+
+prepare() {
+ mv udefrag.patch $srcdir/ultradefrag-5.0.0AB.7
+ cd $srcdir/ultradefrag-5.0.0AB.7
+ patch -p1 -i udefrag.patch
+}
+
+package() {
+ cd $srcdir/ultradefrag-5.0.0AB.7/src
+ make
+ cd $srcdir
+ mkdir usr
+ mkdir usr/bin
+ mv $srcdir/ultradefrag-5.0.0AB.7/src/udefrag $srcdir/usr/bin
+ mv $srcdir/usr $pkgdir
+}
diff --git a/udefrag.patch b/udefrag.patch
new file mode 100644
index 00000000000..28f2a7e23af
--- /dev/null
+++ b/udefrag.patch
@@ -0,0 +1,24 @@
+diff -aur ultradefrag-5.0.0AB.7.pristine/src/Makefile ultradefrag-5.0.0AB.7.new/src/Makefile
+--- ultradefrag-5.0.0AB.7.pristine/src/Makefile 2011-11-24 04:57:55.000000000 -0600
++++ ultradefrag-5.0.0AB.7.new/src/Makefile 2016-07-11 22:57:15.172203741 -0500
+@@ -24,7 +24,7 @@
+ COPT=-DPPGC=1 -O2
+ GCCOPT=-DPPGC=1 -O2
+ LIB1=/usr/lib64
+-LIB2=/usr/lib/gcc/x86_64-redhat-linux/4.6.0
++LIB2=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1
+ NTFSLIB=/lib64/libntfs-3g.so.*.0.0
+
+ A=console.a udefrag.a zenwinx.a wincalls.a
+diff -aur ultradefrag-5.0.0AB.7.pristine/src/wincalls/ntfs-3g.c ultradefrag-5.0.0AB.7.new/src/wincalls/ntfs-3g.c
+--- ultradefrag-5.0.0AB.7.pristine/src/wincalls/ntfs-3g.c 2011-11-26 07:56:37.000000000 -0600
++++ ultradefrag-5.0.0AB.7.new/src/wincalls/ntfs-3g.c 2016-07-11 22:57:54.575886431 -0500
+@@ -144,7 +144,7 @@
+ ntfs_volume *vol;
+
+ if (do_nothing)
+- vol = ntfs_mount(device,MS_RDONLY);
++ vol = ntfs_mount(device,"MS_RDONLY");
+ else
+ vol = ntfs_mount(device,0);
+ #ifdef NVolSetNoFixupWarn