diff options
author | Andrés Rodríguez | 2021-05-26 11:07:19 -0300 |
---|---|---|
committer | Andrés Rodríguez | 2021-05-26 11:07:19 -0300 |
commit | 6e4690562b27108624a61c31699eadab6a05e341 (patch) | |
tree | f00bcae27e2ec133083ad6758aca006fe749a11e | |
parent | d2ae85c516defa3f1b70e70035a4eb3bd26e558a (diff) | |
download | aur-libsysconfcpus-git.tar.gz |
Add git to makedepends
-rw-r--r-- | .SRCINFO | 5 | ||||
-rwxr-xr-x | .pre-commit | 13 | ||||
-rw-r--r-- | PKGBUILD | 3 |
3 files changed, 17 insertions, 4 deletions
@@ -1,12 +1,11 @@ -# Generated by mksrcinfo v8 -# Wed Apr 26 03:32:02 UTC 2017 pkgbase = libsysconfcpus-git pkgdesc = LD_PRELOAD library to fake number of available cores - patched git version pkgver = 0.5 - pkgrel = 1 + pkgrel = 2 url = https://github.com/obmarg/libsysconfcpus arch = x86_64 license = GPL2 + makedepends = git source = git://github.com/obmarg/libsysconfcpus.git sha256sums = SKIP diff --git a/.pre-commit b/.pre-commit new file mode 100755 index 000000000000..3b532023a662 --- /dev/null +++ b/.pre-commit @@ -0,0 +1,13 @@ +#!/bin/bash + +# fix environment of githooks +unset GIT_DIR +# if PKGBUILD has been altered, update .SRCINFO +for path in $(git diff --name-only --cached --diff-filter=AM); do + if [[ "${path}" =~ .*PKGBUILD$ ]]; then + echo -e "\e[01;32m *** Generating and adding .SRCINFO for ${path} ***\e[00m" + (makepkg --printsrcinfo > "${PWD}"/.SRCINFO) || exit 1 + git update-index + git add "${PWD}"/.SRCINFO + fi +done @@ -2,11 +2,12 @@ pkgname=('libsysconfcpus-git') pkgver=0.5 -pkgrel=1 +pkgrel=2 pkgdesc="LD_PRELOAD library to fake number of available cores - patched git version" arch=(x86_64) url="https://github.com/obmarg/libsysconfcpus" license=('GPL2') +makedepends=("git") source=("git://github.com/obmarg/libsysconfcpus.git") sha256sums=("SKIP") |