Date: Tuesday, April 4, 2023 @ 08:34:11
Author: grawlinson
Revision: 1434494
archrelease: copy trunk to community-x86_64
Added:
d2/repos/community-x86_64/PKGBUILD
(from rev 1434493, d2/trunk/PKGBUILD)
Deleted:
d2/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 140 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 70 insertions(+), 70 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-04 08:32:42 UTC (rev 1434493)
+++ PKGBUILD 2023-04-04 08:34:11 UTC (rev 1434494)
@@ -1,70 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=d2
-pkgver=0.2.2
-pkgrel=1
-pkgdesc='A modern diagram scripting language that turns text to diagrams'
-arch=('x86_64')
-url='https://d2lang.com'
-license=('MPL2')
-depends=('gcc-libs')
-makedepends=('git' 'go')
-options=('!lto')
-_commit='ab4e4542d67053f256e2b51ebf5276c722b8d1d9'
-source=("$pkgname::git+https://github.com/terrastruct/d2#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- cd "$pkgname"
-
- # create directory for build output
- mkdir build
-
- # download dependencies
- export GOPATH="${srcdir}"
- go mod download
-}
-
-build() {
- cd "$pkgname"
-
- # set Go flags
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export GOPATH="${srcdir}"
-
- go build -v \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-compressdwarf=false \
- -linkmode external \
- -extldflags ${LDFLAGS} \
- -X oss.terrastruct.com/d2/lib/version.Version=$pkgver" \
- -o build \
- .
-}
-
-package() {
- cd "$pkgname"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" build/d2
-
- # man page
- install -vDm644 -t "$pkgdir/usr/share/man/man1" ci/release/template/man/d2.1
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
- cp -vr docs "$pkgdir/usr/share/doc/$pkgname"
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
-}
Copied: d2/repos/community-x86_64/PKGBUILD (from rev 1434493, d2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-04 08:34:11 UTC (rev 1434494)
@@ -0,0 +1,70 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=d2
+pkgver=0.3.0
+pkgrel=1
+pkgdesc='A modern diagram scripting language that turns text to diagrams'
+arch=('x86_64')
+url='https://d2lang.com'
+license=('MPL2')
+depends=('gcc-libs')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='584a543fe53b078b4924c99a80c07c8bdf8914ac'
+source=("$pkgname::git+https://github.com/terrastruct/d2#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # create directory for build output
+ mkdir build
+
+ # download dependencies
+ export GOPATH="${srcdir}"
+ go mod download
+}
+
+build() {
+ cd "$pkgname"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPATH="${srcdir}"
+
+ go build -v \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-compressdwarf=false \
+ -linkmode external \
+ -extldflags ${LDFLAGS} \
+ -X oss.terrastruct.com/d2/lib/version.Version=$pkgver" \
+ -o build \
+ .
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" build/d2
+
+ # man page
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" ci/release/template/man/d2.1
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ cp -vr docs "$pkgdir/usr/share/doc/$pkgname"
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
+}