Package Details: pak-config-yay 1.0-4

Git Clone URL: https://aur.archlinux.org/pak-config-yay.git (read-only)
Package Base: pak-config-yay
Description: A pacman config for yay
Upstream URL: https://gitlab.com/moussaelianarsen/pak
Licenses: GPL3
Conflicts: pak-config-pacman
Provides: pak-config, yaywrap
Submitter: Arsen6331
Maintainer: Arsen6331
Last Packager: Arsen6331
Votes: 1
Popularity: 0.186532
First Submitted: 2019-07-16 03:20
Last Updated: 2019-07-17 15:46

Latest Comments

yochananmarqos commented on 2019-10-22 17:24

See the comments on pak.

By the way, my previous comment included the wrong permissions for /etc/pak.cfg. They should be 744.

pkgname=pak-config-yay-git
pkgver=r76.672a6de
pkgrel=1
pkgdesc="A pacman config for yay"
arch=('x86_64')
url="https://gitlab.com/moussaelianarsen/pak"
license=('GPL3')
depends=('swift-language' 'yay')
makedepends=('git')
provides=("${pkgname%-git}" 'pak-config' 'yaywrap')
conflicts=("${pkgname%-git}" 'pak-config' 'yaywrap')
source=('git+https://gitlab.com/moussaelianarsen/pak.git')
sha256sums=('SKIP')

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

build() {
    cd "$srcdir/pak"
    swiftc plugins/yaywrap/yaywrap.swift
}

package() {
    cd "$srcdir/pak"
    install -Dm755 yaywrap "$pkgdir/usr/bin/yaywrap"
    install -Dm744 plugins/yaywrap/pak.cfg "$pkgdir/etc/pak.cfg"
}

Arsen6331 commented on 2019-07-17 15:50

All pak packages have been updated, sudo has been removed. Thanks @yochananmarqos for the suggestion to use -Dm with install.

yochananmarqos commented on 2019-07-16 20:04

DO NOT use sudo in a PKGBUILD. Your package() array should look like this:

package() {
    install -Dm755 yaywrap $pkgdir/usr/bin/yaywrap
    install -Dm644 pak.cfg $pkgdir/etc/pak.cfg
}