Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages / 
cosmic-workspaces


Commits:
cd751353 by Maxime Gauduin at 2024-10-03T19:43:20+02:00
upgpkg: 1:1.0.0alpha2-1

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + cosmic-workspaces-lto.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,8 @@
 pkgbase = cosmic-workspaces
        pkgdesc = Cosmic workspaces
-       pkgver = 1.0.0.alpha.1
+       pkgver = 1.0.0alpha2
        pkgrel = 1
+       epoch = 1
        url = https://github.com/pop-os/cosmic-workspaces-epoch
        arch = x86_64
        groups = cosmic
@@ -16,7 +17,9 @@ pkgbase = cosmic-workspaces
        depends = libxkbcommon
        depends = mesa
        depends = wayland
-       source = 
git+https://github.com/pop-os/cosmic-workspaces-epoch.git#tag=c1acf0c1aa819fc279193dd61e04ec132f318b6c
-       b2sums = 
a97f74994c83c7e2fe51b4c88426672c4c7056246cfa5e3d5d28337f468339b812538c62088bbfe2fe8c743cd52b88c2892b9c117e73e62a089a9dee93d58681
+       source = 
git+https://github.com/pop-os/cosmic-workspaces-epoch.git#tag=70d6c415a1cd931f575c3e18274c3fecc7cc9a03
+       source = cosmic-workspaces-lto.patch
+       b2sums = 
06c1eeb25d12287c0c9865543a5bf8bf1fd01d338edea07b2d20ef3783f77ffb43fcfd1550786f2703ffdcdd833a60c39f8beaa4dc59792ca4d825e6b5ac0b88
+       b2sums = 
e8581fbd229f4cec60e0a03986c5adc6273a704ee44129dfc01731aa0c4f2d800b2971103e005f9d5fe853facae8db2e707d27af0e7a1d3577962aa1eb80d2b0
 
 pkgname = cosmic-workspaces


=====================================
PKGBUILD
=====================================
@@ -2,8 +2,9 @@
 # Contributor: Mark Wagie <[email protected]>
 
 pkgname=cosmic-workspaces
-pkgver=1.0.0.alpha.1
+pkgver=1.0.0alpha2
 pkgrel=1
+epoch=1
 pkgdesc='Cosmic workspaces'
 arch=(x86_64)
 url=https://github.com/pop-os/cosmic-workspaces-epoch
@@ -23,29 +24,34 @@ makedepends=(
   git
   lld
 )
-_tag=c1acf0c1aa819fc279193dd61e04ec132f318b6c
-source=(git+https://github.com/pop-os/cosmic-workspaces-epoch.git#tag=${_tag})
-b2sums=('a97f74994c83c7e2fe51b4c88426672c4c7056246cfa5e3d5d28337f468339b812538c62088bbfe2fe8c743cd52b88c2892b9c117e73e62a089a9dee93d58681')
+_tag=70d6c415a1cd931f575c3e18274c3fecc7cc9a03
+source=(
+  git+https://github.com/pop-os/cosmic-workspaces-epoch.git#tag=${_tag}
+  cosmic-workspaces-lto.patch
+)
+b2sums=('06c1eeb25d12287c0c9865543a5bf8bf1fd01d338edea07b2d20ef3783f77ffb43fcfd1550786f2703ffdcdd833a60c39f8beaa4dc59792ca4d825e6b5ac0b88'
+        
'e8581fbd229f4cec60e0a03986c5adc6273a704ee44129dfc01731aa0c4f2d800b2971103e005f9d5fe853facae8db2e707d27af0e7a1d3577962aa1eb80d2b0')
 
 prepare() {
   cd cosmic-workspaces-epoch
+  patch -Np1 -i ../cosmic-workspaces-lto.patch
   cargo fetch --locked
 }
 
 pkgver() {
   cd cosmic-workspaces-epoch
-  git describe --tags | sed 's/^epoch-//; s/-/./g'
+  git describe --tags | sed 's/^epoch-//; s/-alpha./alpha/'
 }
 
 build() {
   cd cosmic-workspaces-epoch
-  RUSTFLAGS+=" -C link-arg=-fuse-ld=lld"
-  make ARGS+=" --frozen --release"
+  RUSTFLAGS+=' -C link-arg=-fuse-ld=lld'
+  make ARGS+=' --frozen --release'
 }
 
 package() {
   cd cosmic-workspaces-epoch
-  make prefix='/usr' DESTDIR="${pkgdir}" install
+  make prefix=/usr DESTDIR="${pkgdir}" install
 }
 
 # vim: ts=2 sw=2 et:


=====================================
cosmic-workspaces-lto.patch
=====================================
@@ -0,0 +1,13 @@
+diff '--color=auto' -rupN cosmic-workspaces-epoch.orig/Cargo.toml 
cosmic-workspaces-epoch/Cargo.toml
+--- cosmic-workspaces-epoch.orig/Cargo.toml    2024-09-26 19:47:43.512077237 
+0200
++++ cosmic-workspaces-epoch/Cargo.toml 2024-09-26 19:48:00.248931877 +0200
+@@ -46,6 +46,9 @@ mock-backend = []
+ # Not usable at opt-level 0, at least with software renderer
+ opt-level = 1
+ 
++[profile.release]
++lto = "thin"
++
+ # [patch."https://github.com/pop-os/libcosmic";]
+ # libcosmic = { path = "../libcosmic" }
+ # cosmic-config = { path = "../libcosmic/cosmic-config" }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cosmic-workspaces/-/commit/cd7513537e0437e1d22d1e0d76178e3206cc5fbf

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cosmic-workspaces/-/commit/cd7513537e0437e1d22d1e0d76178e3206cc5fbf
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to