summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dccd597b7660ac1681eca423a45b8a6c09a6eb06 (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.2.0
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"
}