aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/libmd/APKBUILD')
-rw-r--r--main/libmd/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/libmd/APKBUILD b/main/libmd/APKBUILD
new file mode 100644
index 0000000000..9cd8d1a5b4
--- /dev/null
+++ b/main/libmd/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: omni <omni+alpine@hack.org>
+# Maintainer: omni <omni+alpine@hack.org>
+pkgname=libmd
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="Message Digest functions from BSD systems"
+url="https://www.hadrons.org/software/libmd/"
+arch="all"
+license="Public Domain"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://archive.hadrons.org/software/libmd/libmd-$pkgver.tar.xz"
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ install -Dm0644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"
+}
+
+sha512sums="f4b5a86bea7b9fac9f7f173032ee436d1e7141f760c1a114a785d31644edbf6802fe8193cc4cf3b5c66d38963be919c05055780bdf6bf5a47927690490ff5966 libmd-1.0.3.tar.xz"