summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ce7da6b2dca65d4d13846f4e52a93e487d62346 (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
40
# Maintainer: Tinu Weber <http://ayekat.ch>

pkgname=remakepkg
pkgver=0.7.1
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
}