Skip to content

Commit 71d6b9d

Browse files
committed
dissent: remove upstreamed patch & simplify PKGBUILD
1 parent 7cf5665 commit 71d6b9d

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

archlinuxcn/dissent/PKGBUILD

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Maintainer: txtsd <[email protected]>
1+
# Maintainer: Integral <[email protected]>
2+
# Contributor: txtsd <[email protected]>
23

34
pkgname=dissent
45
pkgver=0.0.31
@@ -12,19 +13,11 @@ depends=('gtk4' 'gobject-introspection' 'libadwaita' 'gtksourceview5' 'libspelli
1213
makedepends=('git' 'go')
1314
provides=("gtkcord4")
1415
replaces=("gtkcord4")
15-
source=(
16-
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${_pkgver}.tar.gz"
17-
"https://github.com/diamondburned/dissent/pull/336.patch"
18-
)
19-
sha256sums=('0e7ce9abfa6f8fb4c2c88a78ec18a84403d706ef08ceec955d173223835cb17d'
20-
'b27f56151ae919aba2e88c4676b5f1ff1300fe3c4eb084c61dd5fe6793ff6c80')
16+
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${_pkgver}.tar.gz")
17+
sha256sums=('0e7ce9abfa6f8fb4c2c88a78ec18a84403d706ef08ceec955d173223835cb17d')
2118

2219
prepare() {
23-
cd "${pkgname}-${_pkgver}/"
24-
mkdir -p build
25-
26-
# Apply patch to update libspelling go mods
27-
patch -p1 -i ../336.patch
20+
mkdir "${pkgname}-${_pkgver}/build/"
2821
}
2922

3023
build() {
@@ -40,10 +33,8 @@ build() {
4033
}
4134

4235
package() {
43-
cd "${pkgname}-${_pkgver}/build/"
44-
install -Dm755 "${pkgname}" -t "${pkgdir}/usr/bin/"
45-
46-
cd ..
36+
cd "${pkgname}-${_pkgver}/"
37+
install -Dm755 "build/${pkgname}" -t "${pkgdir}/usr/bin/"
4738
install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}/"
4839
install -Dm644 "nix/so.libdb.${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
4940
install -Dm644 "internal/icons/hicolor/scalable/apps/so.libdb.${pkgname}.Devel.svg" -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps/"

0 commit comments

Comments
 (0)