archlinux-pkgbuilds/mmv/PKGBUILD

39 lines
893 B
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
2024-10-02 17:23:03 +02:00
pkgver=2.7
pkgrel=1
pkgdesc="multiple move files"
source=(
2024-10-02 17:23:03 +02:00
https://github.com/rrthomas/mmv/releases/download/v${pkgver}/mmv-${pkgver}.tar.gz
)
2024-10-02 17:23:03 +02:00
sha256sums=('11346686634000e22aa909e08d9d450237c4b61062779935cbd81df78efad72d')
2011-05-18 14:56:37 +02:00
2024-10-02 17:23:03 +02:00
url="https://github.com/rrthomas/mmv"
license=(GPL-2.0-or-later)
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"
2024-10-02 17:23:03 +02:00
./configure --prefix /usr
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/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
}