summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorhaawda2018-11-20 12:06:35 +0100
committerhaawda2018-11-20 12:06:35 +0100
commit47e90ae2fa1934fe2e0d8bcccadf06d2e167009b (patch)
tree11968702c7845572acff77527f0b8c748f29ef9d /PKGBUILD
parent43c158471d112dd2c92ddb08d44e8c1fb2f3094d (diff)
downloadaur-47e90ae2fa1934fe2e0d8bcccadf06d2e167009b.tar.gz
new pkgver function, avoid _gitname variable
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 13 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 79057885ca7..681d73563da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
-# Contributor: Joyfulgirl <joyfulgirl (at) archlinux.us>
+# Contributor: Joyfulgirl <joyfulgirl (at) archlinux.us> a.k.a. escondida
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emms-git
-pkgver=20171215
+pkgver=5.1.0.g56d9ec2
pkgrel=1
pkgdesc="Emacs MultiMedia System -- git version"
arch=('i686' 'x86_64')
@@ -20,30 +20,29 @@ conflicts=('emms')
provides=('emms')
source=('git://git.sv.gnu.org/emms.git')
md5sums=('SKIP')
-_gitname="emms"
pkgver() {
- cd "$srcdir"/$_gitname
- echo $(git log -1 --format="%cd" --date=short | sed 's|-||g')
+ cd emms
+ git describe --long | tr - .
}
prepare() {
- cd "$srcdir"/$_gitname/lisp
+ cd emms/lisp
sed -i '5s+$+ emms-setup.el+' Makefile
}
build() {
- cd ${srcdir}/${_gitname}
+ cd emms
PREFIX=/usr make
PREFIX=/usr make emms-print-metadata
}
package() {
- cd ${srcdir}/${_gitname}
- install -d ${pkgdir}/usr/share/{emacs/site-lisp/emms,man/man1,info}
- install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/emms lisp/*.el
- install -m 644 -t ${pkgdir}/usr/share/emacs/site-lisp/emms lisp/*.elc
- install -m 644 -t ${pkgdir}/usr/share/info doc/emms.info
- install -m 644 -t ${pkgdir}/usr/share/man/man1 emms-print-metadata.1
- install -Dm755 src/emms-print-metadata ${pkgdir}/usr/bin/emms-print-metadata
+ cd emms
+ install -d "$pkgdir"/usr/share/{emacs/site-lisp/emms,man/man1,info}
+ install -m 644 -t "$pkgdir"/usr/share/emacs/site-lisp/emms lisp/*.el
+ install -m 644 -t "$pkgdir"/usr/share/emacs/site-lisp/emms lisp/*.elc
+ install -m 644 -t "$pkgdir"/usr/share/info doc/emms.info
+ install -m 644 -t "$pkgdir"/usr/share/man/man1 emms-print-metadata.1
+ install -Dm755 src/emms-print-metadata "$pkgdir"/usr/bin/emms-print-metadata
}