diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 17 insertions, 14 deletions
@@ -1,6 +1,6 @@ pkgbase = photon-rss-git - pkgdesc = RSS reader as light as a photon with terminal + sixel frontend - pkgver = r54.e85a2d4 + pkgdesc = RSS reader as light as a photon with terminal + sixel + pkgver = r67.0047864 pkgrel = 1 url = https://git.sr.ht/~ghost08/photon arch = i686 @@ -13,7 +13,7 @@ pkgbase = photon-rss-git license = GPL3 makedepends = git makedepends = go - depends = glibc + makedepends = scdoc optdepends = yt-dlp: A youtube-dl fork with additional features and fixes optdepends = mpv: a free, open source, and cross-platform media player optdepends = imv: Image viewer for Wayland and X11, @@ -1,14 +1,15 @@ # Maintainer: Vladimir Magyar <vladimir at mgyar dot me> pkgname=photon-rss-git -pkgver=r54.e85a2d4 +_pkgname=photon +pkgver=r67.0047864 pkgrel=1 -pkgdesc="RSS reader as light as a photon with terminal + sixel frontend" +pkgdesc="RSS reader as light as a photon with terminal + sixel" arch=("i686" "pentium4" "x86_64" "arm" "armv6h" "armv7h" "aarch64") url="https://git.sr.ht/~ghost08/photon" license=("GPL3") -depends=('glibc') -makedepends=('git' 'go') +depends=() +makedepends=('git' 'go' 'scdoc') optdepends=( "yt-dlp: A youtube-dl fork with additional features and fixes" "mpv: a free, open source, and cross-platform media player" @@ -22,23 +23,26 @@ sha256sums=('SKIP') pkgver() { cd "$pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) } build() { - export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" cd "$pkgname" - go build + make PREFIX=/urs } check() { - export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" @@ -49,7 +53,6 @@ check() { package() { cd "$pkgname" - install -Dm 755 photon -t "$pkgdir/usr/bin/" - install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" - install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" + make PREFIX=/usr DESTDIR=$pkgdir install + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname/" } |