summaryrefslogtreecommitdiff
path: root/devel/rpcsvc-proto/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'devel/rpcsvc-proto/MAKEPKG')
-rw-r--r--devel/rpcsvc-proto/MAKEPKG33
1 files changed, 33 insertions, 0 deletions
diff --git a/devel/rpcsvc-proto/MAKEPKG b/devel/rpcsvc-proto/MAKEPKG
new file mode 100644
index 0000000..3ec67b2
--- /dev/null
+++ b/devel/rpcsvc-proto/MAKEPKG
@@ -0,0 +1,33 @@
+#!/bin/mkpkg
+# description: rpcsvc protocol definitions from glibc
+# url: https://github.com/thkukuk/rpcsvc-proto
+name=rpcsvc-proto
+version=1.4.4
+release=1
+depends=(libtirpc)
+makedeps=()
+source=(https://github.com/thkukuk/$name/releases/download/v$version/$name-$version.tar.xz)
+
+sha256sums=(
+ "81c3aa27edb5d8a18ef027081ebb984234d5b5860c65bd99d4ac8f03145a558b"
+)
+
+build() {
+ cd $name-$version
+
+ # musl does not have stat64/struct stat64 (uses 64-bit stat natively)
+ sed -i 's/struct stat64/struct stat/g; s/stat64 (/stat (/g' rpcgen/rpc_main.c
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc
+
+ make
+ make DESTDIR=$PKG install
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+# vim: filetype=sh