summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFronkles McFranko2021-02-10 17:16:59 -0800
committerFronkles McFranko2021-02-10 17:16:59 -0800
commite6d54a368ba3e0a95a1f6a3495fecb24b53f1836 (patch)
treecd4c053f9f39689f7a1d665a15c2f65ddc1f2c27
parentd3b0190bdcccbd3945246fc4b4c62ac60b0351fa (diff)
downloadaur-e6d54a368ba3e0a95a1f6a3495fecb24b53f1836.tar.gz
Changed pkgver() and switched to install command
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 5 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a2fc79ae74d..d542aba305c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = eww-git
pkgdesc = ElKowar's wacky widgets
- pkgver = 145__2021.01.03
+ pkgver = cddcea7_2021.02.10_
pkgrel = 1
url = https://github.com/elkowar/eww
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 1d71bdcdf14..07d92441b7e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fronkles McFranko <mrelfranko@disroot.org>
pkgname=eww-git
_pkgname=eww
-pkgver=145__2021.01.03
+pkgver=cddcea7_2021.02.10_
pkgrel=1
epoch=
pkgdesc="ElKowar's wacky widgets"
@@ -27,10 +27,9 @@ validpgpkeys=()
pkgver() {
cd ${_pkgname}
- _tag=$(git describe --tags | sed 's:^v::')
- _commits=$(git rev-list --count HEAD)
+ _commit=$(git rev-parse HEAD | cut -c1-7)
_date=$(git log -1 --date=short --pretty=format:%cd)
- printf "%s_%s_%s\n" "${_commits}" "${_tag}" "${_date}" | sed 's/-/./g'
+ printf "%s_%s_%s\n" "${_commit}" "${_date}" | sed 's/-/./g'
}
build() {
@@ -41,6 +40,5 @@ build() {
package() {
cd "$_pkgname"
- mkdir -p "${pkgdir}/usr/bin"
- mv target/release/eww "${pkgdir}/usr/bin"
+ install -D target/release/eww --target-directory "${pkgdir}/usr/bin" --mode 755
}