summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12a45a253994b7e64589128d7642b19c90acb329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Vresod <lukebinkofsky@gmail.com>
pkgname=advcpmv
pkgver=8.32
pkgrel=2
pkgdesc="Advanced Copy is a mod for the GNU cp and GNU mv tools which adds a progress bar and provides some info on what's going on"
arch=( "any" )
url="https://github.com/jarun/advcpmv"
license=("GPL3")
source=( "http://ftp.gnu.org/gnu/coreutils/coreutils-$pkgver.tar.xz" "https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-0.8-$pkgver.patch" "mv.1.gz" "cp.1.gz" )
sha256sums=('4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa'
            '294e54c2a13d648dd5298df55369fa1a51d8f9960c90c558f316468e54b9e747'
            '6ab6916b1ea86be2c669c8c99dbd2b08848f19cd719b68aaf27a9d460ca2dd83'
            '82054540db3ca04f62d95ef4a45ef79809c2c94df5bbfc2458a4970e9a862409')
depends=( )
optdepends=( )
makedepends=( "xz" )

prepare() {
	tar xvJf "coreutils-$pkgver.tar.xz"
	cd coreutils-$pkgver
	mv ../advcpmv-0.8-$pkgver.patch .
	patch -p1 -i advcpmv-0.8-$pkgver.patch
	./configure
	cd ..
}

build() {
	cd coreutils-$pkgver
	make
	cd ..
	
}

package() {
	install -Dm755 "coreutils-$pkgver/src/cp"  "$pkgdir"/usr/bin/advcp
	install -Dm755 "coreutils-$pkgver/src/mv"  "$pkgdir"/usr/bin/advmv
	install -Dm644 "mv.1.gz"                   "$pkgdir"/usr/share/man/man1/advmv.1.gz
	install -Dm644 "cp.1.gz"                   "$pkgdir"/usr/share/man/man1/advcp.1.gz
}