diff options
author | Noeljunior | 2017-10-13 19:31:50 +0100 |
---|---|---|
committer | Noeljunior | 2017-10-13 19:36:50 +0100 |
commit | dca7492f087537a9f350614897c4a6b4e653e8de (patch) | |
tree | 426cd34acb8084eb5ce38cc7fc6bd5f3a5199974 | |
download | aur-dca7492f087537a9f350614897c4a6b4e653e8de.tar.gz |
1st
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..be8f9b1c04a8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = pscripts-git + pkgdesc = Noeljunior's pscripts: some handy scripts for users and sysadmins + pkgver = 0.1a + pkgrel = 1 + url = https://github.com/Noeljunior/pscripts + arch = any + license = GPL + depends = git + source = pscripts-git::git+https://github.com/Noeljunior/pscripts + md5sums = SKIP + +pkgname = pscripts-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f29be1c42ac1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Noeljnuior <liamgliamgmailcom> + +pkgname=pscripts-git +pkgver=0.1a +pkgrel=1 +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" "/opt/pscripts" "${pkgdir}/etc/profile.d" +} + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} |