makedeb
Terminal client for MangaDex
Click here to go back to the commit logs for mangadesk.
Hash: 35c2826505545a7c132befb7eb740b258255be75
Message: Updated conflicts
diff --git a/.SRCINFO b/.SRCINFO
index ebbdec3..57a460d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,12 +3,14 @@ generated-by = makedeb-makepkg
pkgbase = mangadesk
pkgdesc = Terminal client for MangaDex
pkgver = 0.7.5
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/darylhjd/mangadesk
arch = x86_64
license = MIT
makedepends = golang-go
depends = libc6-dev
+ conflicts = mangadesk-git
+ conflicts = mangadesk-bin
source = git+https://github.com/darylhjd/mangadesk.git#tag=v0.7.5
sha512sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 24bc02a..42a60e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,9 @@
# AUR Maintainer: Amaan Hashmi-Ubhi <amaanhub at protonmail dot com>
pkgname="mangadesk"
+_gitname="mangadesk"
pkgver="0.7.5"
-pkgrel="2"
+pkgrel="3"
pkgdesc='Terminal client for MangaDex'
arch=('x86_64')
url="https://github.com/darylhjd/mangadesk"
@@ -14,14 +15,15 @@ depends=('libc6-dev')
makedepends=('golang-go')
source=("git+${url}.git#tag=v${pkgver}")
sha512sums=('SKIP')
+conflicts=("${_gitname}-git" "${_gitname}-bin")
prepare(){
- cd "${pkgname}"
+ cd "${_gitname}"
mkdir -p build/
}
build() {
- cd "${pkgname}"
+ cd "${_gitname}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
@@ -32,6 +34,6 @@ build() {
}
package() {
- cd "${pkgname}"
- install -Dm755 build/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
+ cd "${_gitname}"
+ install -Dm755 build/${_gitname} "${pkgdir}"/usr/bin/${_gitname}
}