summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7105a2fe791793632976346e79970b486a57b195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pkgname=pacfolder
_gitname=pacfolder
pkgver=0
pkgrel=1
pkgdesc="Programm to generate a folder with subfolders for each package\
 managed by pacman containing symlinks to all files belonging to that package."
arch=('any')
url="https://github.com/zvynar/pacfolder"
license=('MIT')
depends=('pacman' 'python3')
makedepends=('git')
source=('git://github.com/zvynar/pacfolder.git')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  ## Use the tag of the last commit
  # git describe --always | sed 's|-|.|g'
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  install -Dm755 "$srcdir/$_gitname/pacfolder" "$pkgdir/usr/bin/pacfolder"
}