Skip to content

Commit b7f8087

Browse files
committed
chore(doc): add obs-studio spec example
Signed-off-by: Kaiyang Wu <[email protected]>
1 parent eb02814 commit b7f8087

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

scribblings/aosc.scrbl

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#lang scribble/manual
22
@require[@for-label[aosc
3-
racket/base]]
3+
racket/base]
4+
scribble/example]
45

56
@title{AOSC Racket Packaging Tools}
67
@author[(author+email "Kaiyang Wu" "[email protected]")]
@@ -29,6 +30,45 @@ A minimal @racket[spec] requires a @racket[ver] and a @racket[dummysrc?] set to
2930

3031
Voilà! We have a small @tt{spec}.
3132

33+
The following is a real world example with the sample package @tt{obs-studio}:
34+
35+
@examples[
36+
(require aosc)
37+
38+
(define (obs-studio)
39+
(define version "31.0.0")
40+
(define obs-cef-ver "127.3.5+g114ea2a+chromium-127.0.6533.120")
41+
(define common-src
42+
(git "https://github.com/obsproject/obs-studio"
43+
#:options (list (commit (string-append "tags/" version))
44+
(rename "obs-studio"))))
45+
(spec
46+
#:ver version
47+
#:rel 1
48+
#:srcs
49+
(hash 'any (list common-src)
50+
'amd64 (list common-src
51+
(tbl (format
52+
"https://cef-builds.spotifycdn.com/cef_binary_~a_linux64_minimal.tar.bz2"
53+
obs-cef-ver)
54+
#:options (list (rename "cef.tar.bz2"))))
55+
'arm64 (list common-src
56+
(tbl (format
57+
"https://cef-builds.spotifycdn.com/cef_binary_~a_linuxarm64_minimal.tar.bz2"
58+
obs-cef-ver)
59+
#:options (list (rename "cef.tar.bz2")))))
60+
#:chksums
61+
(hash 'any (list (skip))
62+
'amd64 (list (skip)
63+
(checksum 'sha256 "e7b13b6d92a95625a7a3d5b801a6928cbf41e2ec6afab0d7028bb5b6c88e0d48"))
64+
'arm64 (list (skip)
65+
(checksum 'sha256 "b3c751f7bac03b49825306e96273d6c98dedf26a2fab4e4785964a965859741b")))
66+
#:subdir "obs-studio"
67+
#:chkupdate (anitya 7239)))
68+
69+
(write-spec (obs-studio) (current-output-port))
70+
]
71+
3272
@subsection{Reference}
3373

3474
@defproc[(spec-type? [obj any/c]) boolean?]{

0 commit comments

Comments
 (0)