summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7317306e49fb5de4e3633139508f9b58a11b6387 (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
# Maintainer: Arsen Musayelyan <moussaelianarsen@gmail.com>
pkgname=pak-config-yay-git
pkgver=r20.dbd6a31
pkgrel=2
pkgdesc="A yay config for pak"
arch=('x86_64')
url="https://gitlab.com/moussaelianarsen/pak"
license=('GPL3')
depends=('aptyay-git')
replaces=('pak-config-yay')
provides=('pak-config')
source=("git+https://gitlab.com/moussaelianarsen/pak.git")
md5sums=('SKIP')
conflicts=('pak-config-pacman-git')

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

package() {
	cd "$srcdir/pak"
	install -Dm644 plugins/yay/pak.cfg $pkgdir/etc/pak.cfg
	mkdir -p $pkgdir/etc/pak.d
	install -Dm644 plugins/snap/pak.cfg $pkgdir/etc/pak.d/snap.cfg
	install -Dm644 plugins/apt/pak.cfg $pkgdir/etc/pak.d/apt.cfg
	install -Dm644 plugins/zypper/pak.cfg $pkgdir/etc/pak.d/zypper.cfg
	install -Dm644 plugins/pacman/pak.cfg $pkgdir/etc/pak.d/pacman.cfg
	install -Dm644 plugins/brew/pak.cfg $pkgdir/etc/pak.d/brew.cfg
	install -Dm644 plugins/aptitude/pak.cfg $pkgdir/etc/pak.d/aptitude.cfg
}