commit 0470049d2382044360fb27b8528e935cd1535ff9 Author: Ryan Kes Date: Sun Mar 24 18:37:11 2019 +0100 initial improt diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..f87a25e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = pinentry-dmenu + pkgdesc = A pinentry program with the charm of dmenu + pkgver = 0.2.1 + pkgrel = 1 + url = https://github.com/ritze/pinentry-dmenu + arch = i686 + arch = x86_64 + license = GPL2 + depends = sh + depends = libconfig + depends = libxinerama + depends = libxft + provides = pinentry + source = https://github.com/ritze/pinentry-dmenu/archive/0.2.1.zip + sha256sums = c3150ef052ab3362155a0f69da91221fe5ec27a2cddafe0ce1298a026acab63e + +pkgname = pinentry-dmenu diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccdadf6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ + +# Created by https://www.gitignore.io/api/archlinuxpackages +# Edit at https://www.gitignore.io/?templates=archlinuxpackages + +### ArchLinuxPackages ### +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ + +# End of https://www.gitignore.io/api/archlinuxpackages diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..7691a7a --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,22 @@ +The MIT License (MIT) +===================== + +Copyright © `2019` `Ryan Kes ` + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6c5c89a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Ryan Kes + +pkgname=pinentry-dmenu +pkgver=0.2.1 +pkgrel=1 +pkgdesc="A pinentry program with the charm of dmenu" +url="https://github.com/ritze/pinentry-dmenu" +arch=('i686' 'x86_64') +license=('GPL2') +depends=('sh' 'libconfig' 'libxinerama' 'libxft') +provides=('pinentry') +source=(https://github.com/ritze/pinentry-dmenu/archive/$pkgver.zip) +sha256sums=('c3150ef052ab3362155a0f69da91221fe5ec27a2cddafe0ce1298a026acab63e') + +prepare() { + cd $pkgname-$pkgver + # to use a custom config.h, place it in the package directory + if [[ -f ${SRCDEST}/config.h ]]; then + cp "${SRCDEST}/config.h" . + fi +} + +build(){ + cd $pkgname-$pkgver + make \ + X11INC=/usr/include/X11 \ + X11LIB=/usr/lib/X11 +} + +package() { + cd $pkgname-$pkgver + make PREFIX=/usr DESTDIR="$pkgdir" install +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..8e7b078 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# My Dmenu Build + +[Pinentry-dmenu](https://github.com/ritze/pinentry-dmenu) [Arch](https://www.archlinux.org/) package modified with my font. + +``` +makepkg -si +``` + +## License + +This theme is released under the MIT License. For more information read the [license][license]. + +[license]: LICENSE.md diff --git a/config.h b/config.h new file mode 100644 index 0000000..2e8114a --- /dev/null +++ b/config.h @@ -0,0 +1,19 @@ +/* See LICENSE file for copyright and license details. */ +/* Default settings; can be overriden by command line. */ + +static int bottom = 0; +static int embedded = 0; +static int minpwlen = 32; +static int mon = -1; + +static const char *asterisk = "*"; +static const char *fonts[] = { + "SauceCodePro Nerd Font Mono:style=Regular:pixelsize=18:antialias=true:autohint=true" +}; +static const char *prompt = NULL; +static const char *colors[SchemeLast][4] = { + [SchemePrompt] = { "#bbbbbb", "#222222" }, + [SchemeNormal] = { "#bbbbbb", "#222222" }, + [SchemeSelect] = { "#eeeeee", "#005577" }, + [SchemeDesc] = { "#bbbbbb", "#222222" } +};