Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 455370f32bb92cf20a79e14afc0a6bccf0d5fc50
- Author: Leonard König <leonard.r.koenig@googlemail.com>
- Date: Thu Feb 25 23:02:05 2016 +0100
- make PKGBUILD adhere more to packaging standards
- diff --git a/.SRCINFO b/.SRCINFO
- index b64f763..987976b 100644
- --- a/.SRCINFO
- +++ b/.SRCINFO
- @@ -1,13 +1,18 @@
- +# Generated by mksrcinfo v8
- +# Thu Feb 25 22:01:45 UTC 2016
- pkgbase = pulsemixer-git
- pkgdesc = cli and curses mixer for pulseaudio
- - pkgver = r35.c7817ad
- + pkgver = 1.1.0.r2.gf088a91
- pkgrel = 1
- + epoch = 1
- url = https://github.com/GeorgeFilipkin/pulsemixer
- arch = any
- license = MIT
- makedepends = git
- depends = python
- depends = pulseaudio
- + source = pulsemixer::git+https://github.com/GeorgeFilipkin/pulsemixer.git
- + md5sums = SKIP
- pkgname = pulsemixer-git
- diff --git a/.gitignore b/.gitignore
- new file mode 100644
- index 0000000..18e0a91
- --- /dev/null
- +++ b/.gitignore
- @@ -0,0 +1,9 @@
- +# stuff done by makepkg
- +pkg/
- +src/
- +
- +# built package
- +*.pkg*
- +
- +# cloned source
- +pulsemixer/
- diff --git a/PKGBUILD b/PKGBUILD
- index c8e95c8..dbacf3b 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -1,42 +1,25 @@
- # Maintainer: Jeff Parent <jecxjo@sdf.lonestar.org>
- pkgname=pulsemixer-git
- -pkgver=r35.c7817ad
- +_pkgname=pulsemixer
- +pkgver=1.1.0.r2.gf088a91
- pkgrel=1
- +epoch=1 # one-time forced upgrade to new version
- pkgdesc="cli and curses mixer for pulseaudio"
- arch=(any)
- url="https://github.com/GeorgeFilipkin/pulsemixer"
- license=('MIT')
- depends=('python' 'pulseaudio')
- makedepends=('git')
- -
- -_gitroot=https://github.com/GeorgeFilipkin/pulsemixer.git
- -_gitname=pulsemixer
- +source=($_pkgname::git+https://github.com/GeorgeFilipkin/pulsemixer.git)
- +md5sums=('SKIP')
- pkgver() {
- - cd "$_gitname"
- - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- -}
- -
- -build() {
- - cd "$srcdir"
- - msg "Connecting to GIT server...."
- -
- - if [[ -d "$_gitname" ]]; then
- - cd "$_gitname" && git pull origin
- - msg "The local files are updated."
- - else
- - git clone "$_gitroot" "$_gitname"
- - fi
- -
- - msg "GIT checkout done or server timeout"
- - msg "Starting build..."
- -
- - rm -rf "$srcdir/$_gitname-build"
- - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- + cd "$_pkgname"
- + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
- }
- package() {
- - cd "$srcdir/$_gitname-build"
- + cd "$_pkgname"
- install -m 755 -d "$pkgdir/usr/bin"
- install -m 755 pulsemixer "$pkgdir/usr/bin/"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement