Skip to content

Commit

Permalink
PKGBUILD: avoid git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Feb 15, 2025
1 parent d041324 commit af2ecd3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ provides=('gnome-shell-extension-ddterm')
depends=('gjs' 'gtk3' 'vte3' 'libhandy')
makedepends=('meson' 'git' 'gtk4' 'libxslt' 'xorg-server-xvfb')
checkdepends=('python-pytest' 'python-gobject' 'gnome-shell' 'wl-clipboard')
source=("$pkgname::git+file://$(pwd)")
md5sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
git -C "$startdir" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
arch-meson $pkgname build -Dlinters=disabled "-Dtests=$( ((CHECKFUNC)) && echo enabled || echo disabled )"
arch-meson "$startdir" build -Dlinters=disabled "-Dtests=$( ((CHECKFUNC)) && echo enabled || echo disabled )"

# gtk-builder-tool needs X or Wayland
LIBGL_ALWAYS_SOFTWARE=1 xvfb-run --auto-display --server-args=-noreset --wait=0 -- meson compile -C build
Expand Down

0 comments on commit af2ecd3

Please sign in to comment.