summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3852aff8f6d566f5221e8c6f87473a9e1a5fd6ba (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
# Maintainer: Joan Rieu <joan.rieu@gmail.com>
_pkgname=pacnew-auto
pkgname=$_pkgname-git
pkgver=r3.2b27b54
pkgrel=1
pkgdesc="Automatic pacman pacnew file merging using git rebase"
arch=(any)
url="https://github.com/joanrieu/pacnew-auto"
license=('MIT')
depends=(git)
source=("git+https://github.com/joanrieu/$_pkgname")
noextract=()
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	DESTDIR="$pkgdir/usr/bin/"
    mkdir -p "$DESTDIR"
	mv "$_pkgname/$_pkgname.sh" "$DESTDIR/$_pkgname"
}