Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: wezterm 20210814.124438.54e29167-1: upstream release (also fi…
Browse files Browse the repository at this point in the history
…xes FS#70894)

git-svn-id: file:///srv/repos/svn-community/svn@1003894 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
orhun authored and svntogit committed Aug 19, 2021
1 parent e299c15 commit ac5c941
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions trunk/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>

pkgname=wezterm
_pkgver=20210502-154244-3f7122cb
pkgver=20210502.154244.3f7122cb
pkgver=20210814.124438.54e29167
_gitcommit=54e29167ba25dd4b51bb4ceccfe92941b98d94e1
pkgrel=1
pkgdesc="A GPU-accelerated cross-platform terminal emulator and multiplexer"
arch=('x86_64')
Expand All @@ -20,22 +20,40 @@ depends=(
'openssl'
)
makedepends=('rust' 'cargo' 'cmake' 'git' 'pkgconf' 'python')
source=("git+$url.git#tag=$_pkgver")
sha256sums=('SKIP')
source=(
"${pkgname}::git+$url#commit=$_gitcommit"
"${pkgname}-freetype2::git+https://github.com/wez/freetype2.git"
"${pkgname}-zlib::git+https://github.com/madler/zlib.git"
"${pkgname}-harfbuzz::git+https://github.com/harfbuzz/harfbuzz.git"
"${pkgname}-libpng::git+https://github.com/glennrp/libpng.git"
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')

prepare() {
cd "$pkgname"
git submodule init

git config submodule."harfbuzz/harfbuzz".url "${srcdir}/${pkgname}"-harfbuzz
git config submodule."freetype/libpng".url "${srcdir}/${pkgname}"-libpng
git config submodule."deps/freetype/zlib".url "${srcdir}/${pkgname}"-zlib
git config submodule."freetype2".url "${srcdir}/${pkgname}"-freetype2

git submodule update --init --recursive
cargo fetch --locked
}

build() {
cd "$pkgname"
cargo build --release --locked
cargo build --frozen --release
}

check() {
cd "$pkgname"
cargo test --release --locked
cargo test --frozen
}

package() {
Expand All @@ -47,6 +65,7 @@ package() {
install -Dm 644 "assets/icon/terminal.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.$pkgname.png"
install -Dm 644 "assets/$pkgname.desktop" "$pkgdir/usr/share/applications/org.wezfurlong.$pkgname.desktop"
install -Dm 644 "assets/$pkgname.appdata.xml" "$pkgdir/usr/share/metainfo/org.wezfurlong.$pkgname.appdata.xml"
install -Dm 644 assets/shell-integration/* -t "$pkgdir/etc/profile.d"
install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}

0 comments on commit ac5c941

Please sign in to comment.