summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpyros Stathopoulos2021-06-03 01:03:13 +0100
committerSpyros Stathopoulos2021-06-03 01:03:13 +0100
commitca4e851c93550bc10ac3795c213926b9ad6cf9fc (patch)
tree573c2b16dcd8d91879258b15899f0d7226fcdad1
parent6103705ac7cbc51288664eb23f132f9657ad8a5f (diff)
downloadaur-ca4e851c93550bc10ac3795c213926b9ad6cf9fc.tar.gz
Update for libalpm 13
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD23
3 files changed, 16 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f52b039a28c..5e8ff9d33cf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = pkgupd-git
pkgdesc = Checks repositories and AUR for package updates
- pkgver = 0.41
+ pkgver = 0.42
pkgrel = 1
url = https://github.com/foucault/pkgupd
arch = i686
@@ -18,4 +18,3 @@ pkgbase = pkgupd-git
md5sums = SKIP
pkgname = pkgupd-git
-
diff --git a/.gitignore b/.gitignore
index 43ca0f76163..c88ddbd3d3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,5 +4,7 @@ src/*
*.tar.gz
*.tar.xz
*.tar.bz2
+*.tar.zst
+*.tar.zstd
*.zip
*.swp
diff --git a/PKGBUILD b/PKGBUILD
index 12bb99ee4b2..3ad90f79e32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Spyros Stathopoulos <foucault.online@gmail.com>
pkgname=pkgupd-git
_pkgname=pkgupd
-pkgver=0.41
+pkgver=0.42
pkgrel=1
pkgdesc="Checks repositories and AUR for package updates"
arch=('i686' 'x86_64')
@@ -24,12 +24,7 @@ pkgver() {
}
prepare() {
- mkdir -p ${srcdir}/godeps
- msg "Getting GO dependencies"
- for dep in ${_gogets[@]}; do
- msg2 "Go getting ${dep}"
- GOPATH=${srcdir}/godeps go get -v ${dep}
- done
+ mkdir -p ${srcdir}/godeps/src
if [[ -e ${srcdir}/godeps/src/${_pkgname} ]]; then
if [[ -h ${srcdir}/godeps/src/${_pkgname} ]]; then
unlink ${srcdir}/godeps/src/${_pkgname}
@@ -37,7 +32,15 @@ prepare() {
error "${srcdir}/godeps/src/${_pkgname} should be a link"
fi
fi
- ln -s ${srcdir}/${_pkgname} ${srcdir}/godeps/src
+ ln -s ${srcdir}/${_pkgname} ${srcdir}/godeps/src/${_pkgname}
+ cd ${srcdir}/godeps/src/${_pkgname}
+ GOPATH=${srcdir}/godeps go mod init ${_pkgname}
+ GOPATH=${srcdir}/godeps go mod tidy
+ msg "Getting GO dependencies"
+ for dep in ${_gogets[@]}; do
+ msg2 "Go getting ${dep}"
+ GOPATH=${srcdir}/godeps go get -v ${dep}
+ done
}
build() {
@@ -45,8 +48,8 @@ build() {
cd ${srcdir}/${_pkgname}/alpm
make
- msg "Building pkgupd"
- cd ${srcdir}
+ msg "Building pkgupd in ${srcdir}/${_pkgname}"
+ cd ${srcdir}/${_pkgname}
GOPATH=${srcdir}/godeps \
LIBRARY_PATH=${srcdir}/${_pkgname}/alpm \
go install -v pkgupd/pkgupd