summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35df19af6b574fa441396376eb87117b0817d774 (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
# Maintainter: Jerome M. Berger <jeberger@free.fr>
pkgname=pacmerge
pkgver=0.1.3
pkgrel=1
pkgdesc="A semi-automatic merge tool for pacnew files."
arch=('x86_64' 'armv7h')
url="https://heptapod.host/jmb/pacmerge"
license=('GPL3')
depends=(expac diffutils)
makedepends=(cargo mercurial)
source=("$pkgname::hg+https://heptapod.host/jmb/pacmerge#tag=v${pkgver}")
md5sums=(SKIP)
install=pacmerge.install

build() {
    cd "$pkgname"

    cargo build --release --locked
}

package() {
    cd "$pkgname"

    install -Dm755 "target/release/pacmerge" "$pkgdir/usr/bin/pacmerge"
    install -Dm644 "pacmerge.hook" "$pkgdir/usr/share/libalpm/hooks/pacmerge.hook"
}