summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-11-20 14:59:53 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-11-20 14:59:53 +0300
commit371feaa4f03d5b7fb9cdcc37a9631ec928ebc5ab (patch)
tree791c150e83e4ac8766a0f7d2bb6dcbc722b1c38b
downloadwaybar-mpris-yarps-git-371feaa4f03d5b7fb9cdcc37a9631ec928ebc5ab.tar.gz
waybar-mpris-yarps-git-371feaa4f03d5b7fb9cdcc37a9631ec928ebc5ab.zip
init commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD37
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..bdbb514
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = waybar-mpris-yaroslav-git
+ pkgdesc = MPRIS2 waybar component
+ pkgver = r53.485ec0e
+ pkgrel = 1
+ url = https://git.yaroslavps.com/waybar-mpris
+ arch = any
+ license = unknown
+ makedepends = go
+ makedepends = git
+ depends = glibc
+ provides = waybar-mpris
+ conflicts = waybar-mpris
+ conflicts = waybar-mpris-git
+ source = git+https://git.yaroslavps.com/waybar-mpris
+ md5sums = SKIP
+
+pkgname = waybar-mpris-yaroslav-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6ebfd5b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.*
+src
+pkg
+waybar-mpris/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..57e388c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Yaroslav de la Peña Smirnov <yps@yaroslavps.com>
+
+pkgname=waybar-mpris-yaroslav-git
+_pkgname=waybar-mpris
+pkgver=r57.6bb667a
+pkgrel=1
+pkgdesc='MPRIS2 waybar component'
+arch=('any')
+url="https://git.yaroslavps.com/waybar-mpris"
+license=('unknown')
+provides=('waybar-mpris')
+conflicts=('waybar-mpris' 'waybar-mpris-git')
+depends=('glibc')
+makedepends=('go' 'git')
+source=(git+$url)
+md5sums=(SKIP)
+
+pkgver() {
+ cd "${_pkgname}"
+ 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_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+
+ cd "$_pkgname"
+ go build
+}
+
+package() {
+ cd "$_pkgname"
+ install -vDm 755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
+}