summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e68c41f362d54d1e131dcced743c5d5fbe6c381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Noeljnuior <liamgliamgmailcom>

pkgname=pscripts-git
pkgver=0.1a
pkgrel=2
pkgdesc="Noeljunior's pscripts: some handy scripts for users and sysadmins"
arch=('any')
url="https://github.com/Noeljunior/pscripts"
license=('GPL')
depends=(git)
source=("$pkgname::git+https://github.com/Noeljunior/pscripts")
md5sums=('SKIP')

package() {
	cd $srcdir/$pkgname

    ./sysadmin/pscripts --install "${pkgdir}/opt/pscripts" --profile "${pkgdir}/etc/profile.d/pscripts.sh"
}

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}