@@ 0,0 1,24 @@
+image: debian/stable
+sources:
+- https://git.sr.ht/~singpolyma/asterisk
+artifacts:
+- asterisk-packages.tar.xz
+environment:
+ LANG: C.UTF-8
+tasks:
+# sourcehut doesn't include recommends by default, so we do this
+- dependencies: |
+ sudo rm /etc/apt/apt.conf.d/60recommends
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y dgit
+- build_dep: |
+ echo "deb-src http://ftp.ca.debian.org/debian/ stable main" | sudo tee -a /etc/apt/sources.list
+ sudo apt-get update
+ sudo DEBIAN_FRONTEND=noninteractive apt-get build-dep -y asterisk
+- deborig: |
+ cd asterisk
+ git deborig
+- build: |
+ cd asterisk
+ dgit build
+- artifact: |
+ tar -cvJf asterisk-packages.tar.xz *.deb