summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpyros Stathopoulos2022-03-20 02:36:19 +0000
committerSpyros Stathopoulos2022-03-20 02:36:19 +0000
commitda85067530d4f02c14104ba7091fa319c5a9599d (patch)
tree3d22d8c19b3c8511cbb514534f9384723b21c74a
parentca4e851c93550bc10ac3795c213926b9ad6cf9fc (diff)
downloadaur-pkgupd-git.tar.gz
Update github URLs and cleanup PKGBUILD build process
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD29
2 files changed, 12 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5e8ff9d33cf..60565121642 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pkgupd-git
pkgdesc = Checks repositories and AUR for package updates
- pkgver = 0.42
- pkgrel = 1
+ pkgver = 0.43
+ pkgrel = 2
url = https://github.com/foucault/pkgupd
arch = i686
arch = x86_64
@@ -14,7 +14,7 @@ pkgbase = pkgupd-git
conflicts = pkgupd
options = !strip
backup = etc/conf.d/pkgupd
- source = pkgupd::git://github.com/foucault/pkgupd
+ source = pkgupd::git+https://github.com/foucault/pkgupd
md5sums = SKIP
pkgname = pkgupd-git
diff --git a/PKGBUILD b/PKGBUILD
index 3ad90f79e32..90623ebdae4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Contributor: Spyros Stathopoulos <foucault.online@gmail.com>
pkgname=pkgupd-git
_pkgname=pkgupd
-pkgver=0.42
-pkgrel=1
+pkgver=0.43
+pkgrel=2
pkgdesc="Checks repositories and AUR for package updates"
arch=('i686' 'x86_64')
url="https://github.com/foucault/pkgupd"
@@ -12,39 +12,28 @@ conflicts=('pkgupd')
makedepends=('go>=1.3' 'git' 'perl')
optdepends=('python: for the default cli client')
options=('!strip')
-source=("${_pkgname}::git://github.com/foucault/${_pkgname}")
+source=("${_pkgname}::git+https://github.com/foucault/${_pkgname}")
backup=('etc/conf.d/pkgupd')
_gogets=("github.com/jessevdk/go-flags"
"github.com/fsnotify/fsnotify")
md5sums=('SKIP')
pkgver() {
- cd ${srcdir}/${_pkgname}
+ cd ${_pkgname}
echo "0.$(git rev-list --count master)"
}
prepare() {
mkdir -p ${srcdir}/godeps/src
- if [[ -e ${srcdir}/godeps/src/${_pkgname} ]]; then
- if [[ -h ${srcdir}/godeps/src/${_pkgname} ]]; then
- unlink ${srcdir}/godeps/src/${_pkgname}
- else
- error "${srcdir}/godeps/src/${_pkgname} should be a link"
- fi
- fi
- ln -s ${srcdir}/${_pkgname} ${srcdir}/godeps/src/${_pkgname}
- cd ${srcdir}/godeps/src/${_pkgname}
+ cd ${srcdir}/${_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() {
+ msg2 "${srcdir}"
msg "Building glue library"
+ msg2 $(pwd)
cd ${srcdir}/${_pkgname}/alpm
make
@@ -52,7 +41,7 @@ build() {
cd ${srcdir}/${_pkgname}
GOPATH=${srcdir}/godeps \
LIBRARY_PATH=${srcdir}/${_pkgname}/alpm \
- go install -v pkgupd/pkgupd
+ go build -o ${_pkgname} -v pkgupd/pkgupd
msg "Building man page"
cd ${srcdir}/${_pkgname}
@@ -65,7 +54,7 @@ build() {
package() {
cd ${srcdir}/${_pkgname}
- install -D -m755 ${srcdir}/godeps/bin/pkgupd \
+ install -D -m755 ${srcdir}/${_pkgname}/${_pkgname}/${_pkgname} \
${pkgdir}/usr/bin/pkgupd
install -D -m755 ${srcdir}/${_pkgname}/alpm/libgoalpm.so \
${pkgdir}/usr/lib/libgoalpm.so