From 08fc22d3924ea52bf2e53bd452fb6564aea39a71 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 18 May 2011 14:56:37 +0200 Subject: [PATCH 1/2] Improved tentative for mmv --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ mmv.install | 19 +++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 mmv.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4a793d4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mmv + pkgdesc = multiple move files + pkgver = 1.01b.orig + pkgrel = 3 + url = http://linux.maruhn.com/sec/mmv.html + install = mmv.install + arch = i686 + arch = x86_64 + license = GPL + source = http://ftp.de.debian.org/debian/pool/main/m/mmv/mmv_1.01b.orig.tar.gz + source = http://ftp.de.debian.org/debian/pool/main/m/mmv/mmv_1.01b-15.diff.gz + md5sums = 1b2135ab2f17bdfa9e08debbb3c46ad8 + md5sums = 991e5c7ef7b78a05aba1b81c36c6288c + +pkgname = mmv + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cd59c11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: blue_lizard lizard@blue.dyn-o-saur.com +# Contributor: Cedric Girard + +pkgname=mmv +pkgver=1.01b.orig +pkgrel=3 +pkgdesc="multiple move files" +source=(http://ftp.de.debian.org/debian/pool/main/m/mmv/mmv_1.01b.orig.tar.gz http://ftp.de.debian.org/debian/pool/main/m/mmv/mmv_1.01b-15.diff.gz) +md5sums=('1b2135ab2f17bdfa9e08debbb3c46ad8' '991e5c7ef7b78a05aba1b81c36c6288c') + +url="http://linux.maruhn.com/sec/mmv.html" +license="GPL" +install=$pkgname.install +arch=('i686' 'x86_64') + +build() { + cd "${srcdir}/$pkgname-$pkgver" + patch -p1 < ../mmv_1.01b-15.diff + sed -i -e "s/LDFLAGS.\s=-s -N/LDFLAGS =-s/g" Makefile + sed -i 's!/usr/man!/usr/share/man!' Makefile + make +} + +package(){ + cd "${srcdir}/$pkgname-$pkgver" + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/man/man1" + make DESTDIR="${pkgdir}" install + chmod 644 "${pkgdir}/usr/share/man/man1/mmv.1" + cd "${pkgdir}/usr/bin" + ln -s mmv mcp + ln -s mmv mad + ln -s mmv mln + cd "${pkgdir}/usr/share/man/man1/" + ln -s mmv.1 mcp.1 + ln -s mmv.1 mad.1 + ln -s mmv.1 mln.1 +} diff --git a/mmv.install b/mmv.install new file mode 100644 index 0000000..9b23e48 --- /dev/null +++ b/mmv.install @@ -0,0 +1,19 @@ +# arg 1: the new package version +post_install() { + echo ">>>" + echo ">>>" + echo ">>>" + echo ">>> many thanks to the debian people who provide the sources" + echo ">>>" +} + +# arg 1: the old package version +post_remove() { + echo ">>>" + echo ">>>" + echo ">>>" +} + +op=$1 +shift +$op $* From e418b714fc1e816cdb38c8896d0a5ee81c81de62 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 30 May 2016 11:56:50 +0200 Subject: [PATCH 2/2] correct PKGBUILD --- .SRCINFO | 2 ++ PKGBUILD | 14 +++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 4a793d4..1b5b7e3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,3 +1,5 @@ +# Generated by mksrcinfo v8 +# Mon May 30 09:54:39 UTC 2016 pkgbase = mmv pkgdesc = multiple move files pkgver = 1.01b.orig diff --git a/PKGBUILD b/PKGBUILD index cd59c11..4dfacaa 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ -# Maintainer: blue_lizard lizard@blue.dyn-o-saur.com -# Contributor: Cedric Girard +# Maintainer: Cedric Girard +# Contributor: blue_lizard lizard@blue.dyn-o-saur.com pkgname=mmv pkgver=1.01b.orig @@ -9,15 +9,19 @@ source=(http://ftp.de.debian.org/debian/pool/main/m/mmv/mmv_1.01b.orig.tar.gz ht md5sums=('1b2135ab2f17bdfa9e08debbb3c46ad8' '991e5c7ef7b78a05aba1b81c36c6288c') url="http://linux.maruhn.com/sec/mmv.html" -license="GPL" +license=('GPL') install=$pkgname.install arch=('i686' 'x86_64') -build() { +prepare() { cd "${srcdir}/$pkgname-$pkgver" patch -p1 < ../mmv_1.01b-15.diff sed -i -e "s/LDFLAGS.\s=-s -N/LDFLAGS =-s/g" Makefile sed -i 's!/usr/man!/usr/share/man!' Makefile +} + +build() { + cd "${srcdir}/$pkgname-$pkgver" make } @@ -34,5 +38,5 @@ package(){ cd "${pkgdir}/usr/share/man/man1/" ln -s mmv.1 mcp.1 ln -s mmv.1 mad.1 - ln -s mmv.1 mln.1 + ln -s mmv.1 mln.1 }