summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose17112019-03-25 21:40:02 +0100
committerjose17112019-03-25 21:40:02 +0100
commitee4156bda65b0033d196994f6e1f8b27784b2132 (patch)
tree92c867f5afb9cc440afea0b1ae93f9a0a92140c4
downloadaur-fdutils.tar.gz
Adopted from aur3 and updated
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD43
-rw-r--r--fdutils.install22
3 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f4a5875c5e0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+# Generated by mksrcinfo v8
+# Mon Mar 25 20:39:33 UTC 2019
+pkgbase = fdutils
+ pkgdesc = Utilities for the Linux floppy driver, i.e. for formatting extra capacity disks
+ pkgver = 5.5
+ pkgrel = 4
+ url = http://fdutils.linux.lu/index.html
+ install = fdutils.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = texinfo
+ makedepends = tcc
+ depends = glibc
+ depends = tcc
+ depends = texinfo
+ options = !strip
+ options = !makeflags
+ options = !buildflags
+ source = http://deb.debian.org/debian/pool/main/f/fdutils/fdutils_5.5-20060227.orig.tar.gz
+ source = http://deb.debian.org/debian/pool/main/f/fdutils/fdutils_5.5-20060227-7.debian.tar.xz
+ md5sums = cccab0f580659b91810a590436f688ee
+ md5sums = 0168d881016bfde31c7f0d0c0667bf30
+
+pkgname = fdutils
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a6e2ddb712
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Jose Riha <jose 1711 gmail com>
+# Contributor: Laurent Hilsz <laurent.hilsz@laposte.net>
+
+pkgname=fdutils
+pkgver=5.5
+pkgrel=4
+arch=('i686' 'x86_64')
+pkgdesc="Utilities for the Linux floppy driver, i.e. for formatting extra capacity disks"
+url="http://fdutils.linux.lu/index.html"
+makedepends=('texinfo' 'tcc')
+depends=('glibc' 'tcc' 'texinfo')
+source=(http://deb.debian.org/debian/pool/main/f/fdutils/fdutils_5.5-20060227.orig.tar.gz
+ http://deb.debian.org/debian/pool/main/f/fdutils/fdutils_5.5-20060227-7.debian.tar.xz)
+md5sums=('cccab0f580659b91810a590436f688ee'
+ '0168d881016bfde31c7f0d0c0667bf30')
+install=fdutils.install
+options=('!strip' '!makeflags' '!buildflags')
+license=('GPL')
+
+prepare() {
+ cd "${srcdir}/fdutils-5.5-20060227"
+ while read -r i
+ do
+ patch -p1 -i "${srcdir}/debian/patches/${i}"
+ done <"${srcdir}/debian/patches/series"
+ sed -i '1i#include "../config.h"' src/*.c
+}
+
+build() {
+ cd "${srcdir}/fdutils-5.5-20060227"
+ autoreconf
+ export CC=tcc
+ ./configure --prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info
+ sed -i 's+-c -s -m+-c -m+g' src/Makefile
+ make
+}
+
+package() {
+ cd "${srcdir}/fdutils-5.5-20060227"
+ install -d $pkgdir/etc
+ make DESTDIR=$pkgdir install
+ rm "${pkgdir}/usr/share/man/man4/fd.4"
+}
diff --git a/fdutils.install b/fdutils.install
new file mode 100644
index 00000000000..c604d7b20c2
--- /dev/null
+++ b/fdutils.install
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(fdutils.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: