summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Beste2017-04-23 13:47:24 -0500
committerDan Beste2017-04-23 13:47:24 -0500
commita3a468de7dfd1746d155336e1414bc1e79fd466a (patch)
tree98979ff1dc9cdf8c708f0c7c1f17ab2ce4d5a357
downloadaur-a3a468de7dfd1746d155336e1414bc1e79fd466a.tar.gz
Init
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD42
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..47a9f46644b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = libscrypt-git
+ pkgdesc = Shared library that implements scrypt() functionality - a replacement for bcrypt()
+ pkgver = 1.21.r2.gf2b7923
+ pkgrel = 1
+ url = https://github.com/technion/libscrypt
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ provides = libscrypt
+ conflicts = libscrypt
+ source = git+https://github.com/technion/libscrypt
+ sha256sums = SKIP
+
+pkgname = libscrypt-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9865d22ba8e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Blacklist:
+*
+
+# Whitelist:
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c67cc1a65e8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Lex Black <autumn-wind at web dot de>
+
+pkgname='libscrypt-git'
+gitname='libscrypt'
+pkgver=1.21.r2.gf2b7923
+pkgrel=1
+pkgdesc='Shared library that implements scrypt() functionality - a replacement for bcrypt()'
+arch=('i686' 'x86_64')
+url='https://github.com/technion/libscrypt'
+license=('BSD')
+makedepends=('git')
+provides=("${gitname}")
+conflicts=("${gitname}")
+source=('git+https://github.com/technion/libscrypt')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${gitname}"
+
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/v//'
+}
+
+build() {
+ cd "${gitname}"
+
+ CFLAGS="${CFLAGS} -fPIC"
+
+ make
+}
+
+check() {
+ cd "${gitname}"
+
+ make check
+}
+
+package() {
+ cd "${gitname}"
+
+ make PREFIX='/usr' DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}