summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12021-03-25 02:16:14 +0800
committerChocobo12021-03-25 02:16:14 +0800
commit13999323cb98ac02e63696489ed33eea8e2701ae (patch)
tree8ba113b4441785a36324325bf56bbd8ebc87a8da
downloadaur-13999323cb98ac02e63696489ed33eea8e2701ae.tar.gz
newpkg: libmd-git 1.0.3.r12.gd9c4c7f-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD45
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c736fa87cac
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libmd-git
+ pkgdesc = Message Digest functions from BSD systems
+ pkgver = 1.0.3.r12.gd9c4c7f
+ pkgrel = 1
+ url = https://www.hadrons.org/software/libmd/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = glibc
+ provides = libmd
+ conflicts = libmd
+ options = staticlibs
+ source = git+https://git.hadrons.org/git/libmd.git
+ sha256sums = SKIP
+
+pkgname = libmd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..223c10ff12e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libmd-git
+pkgver=1.0.3.r12.gd9c4c7f
+pkgrel=1
+pkgdesc="Message Digest functions from BSD systems"
+arch=('i686' 'x86_64')
+url="https://www.hadrons.org/software/libmd/"
+license=('custom')
+depends=('glibc')
+makedepends=('git')
+provides=('libmd')
+conflicts=('libmd')
+options=('staticlibs')
+source=("git+https://git.hadrons.org/git/libmd.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libmd"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libmd"
+
+ ./autogen
+ ./configure \
+ --prefix="/usr"
+ make
+}
+
+check() {
+ cd "libmd"
+
+ make check
+}
+
+package() {
+ cd "libmd"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libmd"
+}