summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaximilienLIX2015-08-24 22:59:05 +0200
committerMaximilienLIX2015-08-24 22:59:05 +0200
commit57a899390549a8b7d7e24fef06a02f32df2a8faf (patch)
tree1232555900e082ef6b409efc2c1e5e424b97aa90 /PKGBUILD
parent7e4a203b7db57ecc3d93055c394eb56cb92d08f2 (diff)
downloadaur-57a899390549a8b7d7e24fef06a02f32df2a8faf.tar.gz
#YOLOOOOOO
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b7dc0a067dd..994ac7866b3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,23 @@
pkgname=admin-git
_pkgname_simple=admin
-pkgver=1.0
+pkgver=r48.5f5c372
pkgrel=1
pkgdesc="A cli tool to manage easily an archlinux system"
arch=('any')
url="https://gitlab.com/MaximilienLIX/admin"
license=('GPL3')
depends=('sudo')
-optdepends=('firefox: To manage profile and sqlite data base.' 'grub' 'syslinux')
+optdepends=('firefox: To manage profile and sqlite data base.'
+ 'grub: To edit configuration file system easily.'
+ 'syslinux: To edit configuration file system easily.')
makedepends=('git')
source=("git+https://gitlab.com/MaximilienLIX/admin.git")
md5sums=('SKIP')
pkgver() {
- cd "$pkgname"
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "$_pkgname_simple"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package()
@@ -26,7 +28,7 @@ package()
install -d "$pkgdir/usr/share/man/man1/"
install -m755 "$srcdir/$_pkgname_simple/src/"{admin,admin-functions.sh} "$pkgdir/usr/bin"
- install -m644 "$srcdir/$_pkgname_simple/conf/admin.rc" "$pkgdir/etc/$pkgname/"
+ install -m644 "$srcdir/$_pkgname_simple/conf/admin.rc" "$pkgdir/etc/$_pkgname_simple/"
install -m644 "$srcdir/$_pkgname_simple/doc/admin.1.gz" "$pkgdir/usr/share/man/man1/"
}