archlinux-pkgbuilds/PKGBUILD

43 lines
1.1 KiB
Text
Raw Normal View History

2016-05-30 11:56:50 +02:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: blue_lizard lizard@blue.dyn-o-saur.com
2011-05-18 14:56:37 +02:00
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"
2016-05-30 11:56:50 +02:00
license=('GPL')
2011-05-18 14:56:37 +02:00
install=$pkgname.install
arch=('i686' 'x86_64')
2016-05-30 11:56:50 +02:00
prepare() {
2011-05-18 14:56:37 +02:00
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
2016-05-30 11:56:50 +02:00
}
build() {
cd "${srcdir}/$pkgname-$pkgver"
2011-05-18 14:56:37 +02:00
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
2016-05-30 11:56:50 +02:00
ln -s mmv.1 mln.1
2011-05-18 14:56:37 +02:00
}