diff options
author | Arondight | 2016-06-14 11:24:37 +0800 |
---|---|---|
committer | Arondight | 2016-06-14 11:24:37 +0800 |
commit | f1af9c4b417f44cce50837b6b6ee7cd0ec5b5b98 (patch) | |
tree | c08020867383eaf3019e296bb5b6f2a30631c42d | |
download | aur-f1af9c4b417f44cce50837b6b6ee7cd0ec5b5b98.tar.gz |
Init PKGBUILD
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 12 | ||||
-rw-r--r-- | PKGBUILD | 53 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | fingerprint | 5 |
5 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..348812b9bc7f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = sudodev-git + pkgdesc = Create your special device for a none-password sudo + pkgver = v0.27.r3.gf4ab7a8 + pkgrel = 1 + url = https://github.com/Arondight/sudodev.git + arch = any + license = GPL + makedepends = git + makedepends = cmake + makedepends = make + depends = sudo + source = sudodev::git+https://github.com/Arondight/sudodev.git#branch=master + sha256sums = SKIP + +pkgname = sudodev-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8edabadaed1c --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# backup files +*~ +*.swp + +# tags +.tags* +tags* + +# output +bin/* +build/* + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b871d18bd0b6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Arondight <shell_way@foxmail.com> + +pkgname='sudodev-git' +pkgver='v0.27.r3.gf4ab7a8' +pkgrel=1 +pkgdesc='Create your special device for a none-password sudo' +arch=('any') +url='https://github.com/Arondight/sudodev.git' +license=('GPL') +groups=() +depends=('sudo') +makedepends=('git' 'cmake' 'make') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +source=("${pkgname%-git}::git+${url}#branch=master") +noextract=() +sha256sums=('SKIP') + +builddir='build' + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \ + || printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD) +} + +prepare() { + cd "${srcdir}/${pkgname%-git}" +} + +build() { + cd "${srcdir}/${pkgname%-git}" + mkdir -p $builddir + cd $builddir + cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${pkgdir}/" + cmake --build . --config Release -- -j4 +} + +check() { + cd "${srcdir}/${pkgname%-git}" +} + +package() { + cd "${srcdir}/${pkgname%-git}" + cd $builddir + make install +} + diff --git a/README.md b/README.md new file mode 100644 index 000000000000..ff4d8a96e15b --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +This is sudodev's PKGBUILD for Arch Linux. + diff --git a/fingerprint b/fingerprint new file mode 100644 index 000000000000..16161f7747f7 --- /dev/null +++ b/fingerprint @@ -0,0 +1,5 @@ +pub rsa4096/B66CC194 2016-04-15 [SC] + Key fingerprint = 4444 9495 01B3 CC2A 7657 9C08 25FF D92A B66C C194 +uid [ultimate] Arondight <shell_way@foxmail.com> +sub rsa4096/F96E3CB7 2016-04-15 [E] + |