Fixup PKGBUILD

* Use correct conflicts and provides lines
* Also include LICENSE in the built package
This commit is contained in:
Arti Zirk 2024-04-02 15:21:39 +03:00
parent 40eaed3a56
commit 3cc5354122
2 changed files with 12 additions and 17 deletions

View File

@ -1,16 +1,15 @@
pkgbase = aptly-zsh-completion-git
pkgdesc = ZSH completion for aptly
pkgver = r18.8aff667
pkgrel = 1
pkgver = r18.8aff6674ac30
pkgrel = 2
url = https://github.com/steinymity/aptly-zsh
arch = any
license = MIT
makedepends = git
depends = zsh
provides = aptly-zsh-completion-git
conflicts = aptly-zsh-completion-git
provides = aptly-zsh-completion
conflicts = aptly-zsh-completion
source = aptly-zsh-completion-git::git+https://github.com/steinymity/aptly-zsh
md5sums = SKIP
pkgname = aptly-zsh-completion-git

View File

@ -1,23 +1,18 @@
# Maintainer: Arti Zirk <arti.zirk@gmail.com>
pkgname=aptly-zsh-completion-git
pkgver=r18.8aff667
pkgrel=1
_pkgname="aptly-zsh-completion"
pkgname="${_pkgname}-git"
pkgver=r18.8aff6674ac30
pkgrel=2
pkgdesc="ZSH completion for aptly"
arch=('any')
url="https://github.com/steinymity/aptly-zsh"
license=('MIT')
groups=()
depends=('zsh')
makedepends=('git')
provides=("${pkgname}")
conflicts=("${pkgname}")
replaces=()
backup=()
options=()
install=
source=('aptly-zsh-completion-git::git+https://github.com/steinymity/aptly-zsh')
noextract=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}::git+https://github.com/steinymity/aptly-zsh")
md5sums=('SKIP')
pkgver() {
@ -28,4 +23,5 @@ pkgver() {
package() {
cd "$srcdir/${pkgname}"
install -Dm644 _aptly "$pkgdir/usr/share/zsh/site-functions/_aptly"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}