summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrent s2019-11-10 23:12:29 -0500
committerbrent s2019-11-10 23:12:29 -0500
commit5b0195ceebf138b95fb51ea8c511f7a7d68bc61e (patch)
tree4cf771d4842c47c1a824f5fa8cedffe5f970595e
parenta824736d3db50bf7ac2bdd28a629bc47d4294887 (diff)
downloadaur-5b0195ceebf138b95fb51ea8c511f7a7d68bc61e.tar.gz
thanks jrdemasi!
-rw-r--r--.gitignore18
-rw-r--r--PKGBUILD70
2 files changed, 55 insertions, 33 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e16177da290
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,18 @@
+*/
+.*.swp
+*.pkg.tar.xz
+src/
+pkg/
+*.tar
+*.tar.bz2
+*.tar.xz
+*.tar.gz
+*.tgz
+*.txz
+*.tbz
+*.tbz2
+*.zip
+*.run
+*.7z
+*.rar
+*.deb
diff --git a/PKGBUILD b/PKGBUILD
index 101dcca03c8..cb066b169ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,45 @@
-# Maintainer: zargbell <zargbell@yandex.ru>
+# Maintainer: brent s. <bts[at]square-r00t[dot]net>
+validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
+# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
+# News updates for packages can be followed at https://devblog.square-r00t.net
pkgname=pixiecore-git
-pkgver=r306.870d490
+_pkgname='pixiecore'
+pkgver=r328.72fa512
pkgrel=1
pkgdesc="An all-in-one tool for easy netbooting"
-arch=("x86_64" "armv7h")
-url="https://github.com/google/netboot"
-license=("GPL2")
-depends=("glibc")
-makedepends=("git" "go")
-optdepends=()
+arch=('any')
+url="https://godoc.org/go.universe.tf/netboot/pixiecore"
+license=('Apache')
+makedepends=('go'
+'gcc'
+'binutils')
provides=("${pkgname%-git}")
-conflicts=("${pkgname%-git}")
-replaces=()
-options=()
-
-
-prepare() {
- export GOPATH="$srcdir/go"
- mkdir -p $GOPATH
-
- export GOBIN="$GOPATH/bin"
- mkdir -p $GOBIN
-
- go env
-
- go get -d -v go.universe.tf/netboot/cmd/pixiecore
-}
-
+conflicts=("${pkgname%-git}") # pending removal from AUR; upstream has no static versioning
+source=("${_pkgname}::git+https://github.com/danderson/netboot.git#branch=master")
+sha512sums=('SKIP')
+
pkgver(){
- cd "${GOPATH}/src/go.universe.tf/netboot/"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-
-build() {
- go install -v go.universe.tf/netboot/cmd/pixiecore
+
+# https://wiki.archlinux.org/index.php/Go_package_guidelines
+
+build(){
+ cd "${srcdir}/${_pkgname}"
+ #EXTRA_GOFLAGS="-trimpath" \
+ #LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\""
+ #make GOFLAGS="-v" build
+ #export GOPATH="${srcdir}/${_pkgname}"
+ #export GO111MODULES=off
+ go build \
+ -trimpath \
+ -ldflags "-extldflags $LDFLAGS" \
+ -o ${_pkgname} \
+ ${srcdir}/${_pkgname}/cmd/pixiecore
}
-
+
package() {
- install -Dm755 "$GOBIN/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
-} \ No newline at end of file
+ cd ${srcdir}/${_pkgname}/${_pkgname}
+ install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
+}