# Maintainer: Tinu Weber pkgname=remakepkg pkgver=0.7 pkgrel=1 arch=(any) pkgdesc='Apply changes to pacman packages' url='https://gitlab.com/ayekat/pacman-hacks' license=(GPL3) depends=(coreutils) makedepends=(asciidoc git) changelog='changelog' source=("git+https://gitlab.com/ayekat/pacman-hacks.git#tag=v$pkgver" 'diffrepo.hook.example') sha256sums=(SKIP 4b723cf33b30f6176f8f50623c2325d05d5dc70463ca2bcd893fae2ccab5776e) build() { cd pacman-hacks make PREFIX=/usr } package() { depends+=(bash curl expac grep gzip fakeroot libarchive pacman sed sh vi) cd pacman-hacks make \ DESTDIR="$pkgdir" \ SCRIPTS='diffrepo getpkg pkgmirror remakepkg repkg' \ MANPAGES='diffrepo getpkg pkgmirror remakepkg repkg' \ install install -Dm 0644 README "$pkgdir"/usr/share/doc/remakepkg/README install -Dm 0644 CHANGELOG "$pkgdir"/usr/share/doc/remakepkg/CHANGELOG install -Dm 0644 "$srcdir"/diffrepo.hook.example \ "$pkgdir"/usr/share/doc/remakepkg/diffrepo.hook.example }