blob: 2638a95b56cff5d12527fc19fdc35081aa206268 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer : MorsMortium <morsmortium@disroot.org>
# Contributor: dreieck
# Contributor: Callum Parsey
# Contributor: Sefa Eyeoglu
# Contributor: Kazutoshi Noguchi
# Contributor: Marco Kundt
_pkgname="gtk3-nocsd"
_gitname="${_pkgname}"
_gituser='MorsMortium'
pkgname="${_pkgname}-git"
pkgver=3.0.8+2.r84.20221015.a356bf7
pkgrel=2
pkgdesc="A LD_PRELOAD library to disable gtk+ 3 client side decoration."
arch=(
"i686"
"x86_64"
)
url="https://codeberg.org/${_gituser}/${_gitname}"
license=("LGPL-2.1-or-later")
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
depends=(
"bash"
"glibc"
"gtk3"
)
makedepends=(
"git"
"gobject-introspection"
)
install="${_pkgname}.install"
source=(
"${_gitname}::git+${url}.git"
"30-gtk3-nocsd.xinit.sh"
"${install}"
)
sha256sums=(
'SKIP'
'b6a314bb7482f1de024805d669750957c41e350a82f87dd16ca72760d7d8f9f4'
'be5e55a1f1008dbb658b0ad096d67bf43222bde5380c41bfbe4c98b2b1551308'
)
prepare() {
cd "${srcdir}/${_gitname}"
git log > git.log
}
pkgver() {
cd "${srcdir}/${_gitname}"
_ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|-g[0-9a-f]+$||' | tr '-' '+')"
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
_hash="$(git rev-parse --short HEAD)"
if [ -z "${_ver}" ]; then
error "Version could not be determined."
return 1
else
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
fi
}
build() {
cd "${srcdir}/${_gitname}"
make
}
package() {
cd "${srcdir}/${_gitname}"
make DESTDIR="${pkgdir}" prefix='/usr' install
for _docfile in 'git.log' 'README.md' 'gedit-with-csd.png' 'gedit-without-csd.png' 'TODO'; do
install -Dvm644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/${_docfile}"
done
for _licensefile in COPYING; do
install -Dvm644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/${_licensefile}"
ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/${_licensefile}" "${pkgdir}/usr/share/doc/${_pkgname}/${_licensefile}"
done
cd "${srcdir}"
install -Dvm0755 '30-gtk3-nocsd.xinit.sh' "${pkgdir}/usr/share/doc/${_pkgname}/etc/xinit/xinitrc.d/30-gtk3-nocsd.sh"
}
|