pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

alpine-keys (5529B)


      1 #!/usr/bin/env pthbs-build
      2 #+busybox.e60885fe93ee85c01831673bb29f0e62a64903f4ce3094e3dc35bc8ec8887ad9
      3 #@sha256:9c102bcc376af1498d549b77bdbfa815ae86faa1d2d82f040e616b18ef2df2d4:alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
      4 #@sha256:ebf31683b56410ecc4c00acd9f6e2839e237a3b62b5ae7ef686705c7ba0396a9:alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
      5 #@sha256:1bb2a846c0ea4ca9d0e7862f970863857fc33c32f5506098c636a62a726a847b:alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
      6 #@sha256:12f899e55a7691225603d6fb3324940fc51cd7f133e7ead788663c2b7eecb00c:alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
      7 #@sha256:73867d92083f2f8ab899a26ccda7ef63dfaa0032a938620eda605558958a8041:alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
      8 #@sha256:9a4cd858d9710963848e6d5f555325dc199d1c952b01cf6e64da2c15deedbd97:alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub
      9 #@sha256:780b3ed41786772cbc7b68136546fa3f897f28a23b30c72dde6225319c44cfff:alpine-devel@lists.alpinelinux.org-58e4f17d.rsa.pub
     10 #@sha256:59c01c57b446633249f67c04b115dd6787f4378f183dff2bbf65406df93f176d:alpine-devel@lists.alpinelinux.org-5e69ca50.rsa.pub
     11 #@sha256:db0b49163f07ffba64a5ca198bcf1688610b0bd1f0d8d5afeaf78559d73f2278:alpine-devel@lists.alpinelinux.org-60ac2099.rsa.pub
     12 #@sha256:207e4696d3c05f7cb05966aee557307151f1f00217af4143c1bcaf33b8df733f:alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub
     13 #@sha256:128d34d4aec39b0daedea8163cd8dc24dff36fd3d848630ab97eeb1d3084bbb3:alpine-devel@lists.alpinelinux.org-61666e3f.rsa.pub
     14 #@sha256:10877cce0a935e46ad88cb79e174a2491680508eccda08e92bf04fb9bf37fbc1:alpine-devel@lists.alpinelinux.org-616a9724.rsa.pub
     15 #@sha256:4a095a9daca86da496a3cd9adcd95ee2197fdbeb84638656d469f05a4d740751:alpine-devel@lists.alpinelinux.org-616abc23.rsa.pub
     16 #@sha256:0caf5662fde45616d88cfd7021b7bda269a2fcaf311e51c48945a967a609ec0b:alpine-devel@lists.alpinelinux.org-616ac3bc.rsa.pub
     17 #@sha256:ebe717d228555aa58133c202314a451f81e71f174781fd7ff8d8970d6cfa60da:alpine-devel@lists.alpinelinux.org-616adfeb.rsa.pub
     18 #@sha256:d11f6b21c61b4274e182eb888883a8ba8acdbf820dcc7a6d82a7d9fc2fd2836d:alpine-devel@lists.alpinelinux.org-616ae350.rsa.pub
     19 #@sha256:40a216cbd163f22e5f16a9e0929de7cde221b9cbae8e36aa368b1e128afe0a31:alpine-devel@lists.alpinelinux.org-616db30d.rsa.pub
     20 
     21 def_prefix() {
     22 	prefix=/versions/$pthbs_package
     23 }
     24 def_dest() {
     25 	dest=${pthbs_destdir%/}//versions/$pthbs_package
     26 }
     27 def_prefix
     28 d="${pthbs_destdir%/}/$prefix/keys/alpine"
     29 install -d "$d/aarch64"
     30 install -m 644 -t "$d/aarch64" 'alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub'
     31 install -m 644 -t "$d/aarch64" 'alpine-devel@lists.alpinelinux.org-616ae350.rsa.pub'
     32 install -d "$d/armhf"
     33 install -m 644 -t "$d/armhf" 'alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub'
     34 install -m 644 -t "$d/armhf" 'alpine-devel@lists.alpinelinux.org-616a9724.rsa.pub'
     35 install -d "$d/armv7"
     36 install -m 644 -t "$d/armv7" 'alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub'
     37 install -m 644 -t "$d/armv7" 'alpine-devel@lists.alpinelinux.org-616adfeb.rsa.pub'
     38 install -d "$d/mips64"
     39 install -m 644 -t "$d/mips64" 'alpine-devel@lists.alpinelinux.org-5e69ca50.rsa.pub'
     40 install -d "$d/ppc64le"
     41 install -m 644 -t "$d/ppc64le" 'alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub'
     42 install -m 644 -t "$d/ppc64le" 'alpine-devel@lists.alpinelinux.org-616abc23.rsa.pub'
     43 install -d "$d/riscv64"
     44 install -m 644 -t "$d/riscv64" 'alpine-devel@lists.alpinelinux.org-60ac2099.rsa.pub'
     45 install -m 644 -t "$d/riscv64" 'alpine-devel@lists.alpinelinux.org-616db30d.rsa.pub'
     46 install -d "$d/s390x"
     47 install -m 644 -t "$d/s390x" 'alpine-devel@lists.alpinelinux.org-58e4f17d.rsa.pub'
     48 install -m 644 -t "$d/s390x" 'alpine-devel@lists.alpinelinux.org-616ac3bc.rsa.pub'
     49 install -d "$d/x86"
     50 install -m 644 -t "$d/x86" 'alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub'
     51 install -m 644 -t "$d/x86" 'alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub'
     52 install -m 644 -t "$d/x86" 'alpine-devel@lists.alpinelinux.org-61666e3f.rsa.pub'
     53 install -d "$d/x86_64"
     54 install -m 644 -t "$d/x86_64" 'alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub'
     55 install -m 644 -t "$d/x86_64" 'alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub'
     56 install -m 644 -t "$d/x86_64" 'alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub'
     57 
     58 cd "$pthbs_destdir/versions/$pthbs_package"
     59 find -type d -o -print | awk -F/ '
     60 BEGIN {
     61 }
     62 
     63 function r1(s) {
     64 	sub("^[.]/[^/]*", ".", s)
     65 	return s
     66 }
     67 function s1(repl, s) {
     68 	sub("^[.]/[^/]*", "./"repl, s)
     69 	return s
     70 }
     71 function link(src) {
     72 	x[$0]=0
     73 	printf "%s\t%s\n", $0, src
     74 	printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr"
     75 }
     76 $1!="."{exit 1}
     77 
     78 
     79 $2 == "keys" { link($0); next }
     80 $2 == "command" { link($0); next }
     81 $2 == "bin" { link(s1("command", $0)); next }
     82 
     83 $2 == "library.so" { link($0); next }
     84 $2 == "library" { link($0); next }
     85 $2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next }
     86 $2 == "lib" && $NF ~ /\.so(|\..*)$/ { link(s1("library.so", $0)); next }
     87 
     88 $2 == "share" && $3 ~ /^(info|man|doc|icons|terminfo)$/ { link(r1($0)); next }
     89 
     90 $2 == "man" { link($0); next }
     91 $2 == "info" { link($0); next }
     92 $2 == "doc" { link($0); next }
     93 $2 == "icons" { link($0); next }
     94 $2 == "terminfo" { link($0); next }
     95 $2 == "data" { link($0); next }
     96 $2 == "include" { link($0); next }
     97 
     98 { printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" }
     99 
    100 END {
    101 	for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" }
    102 	for(fname in x) {
    103 		if(x[fname]) {
    104 			printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr"
    105 			exit 3
    106 		}
    107 	}
    108 }' >.install-links.new
    109 mv .install-links.new .install-links