Add gschema install stage
This commit is contained in:
parent
b71db3e429
commit
76233709cd
2 changed files with 19 additions and 0 deletions
8
PKGBUILD
8
PKGBUILD
|
@ -13,6 +13,7 @@ depends=(
|
||||||
'python'
|
'python'
|
||||||
'python-gobject'
|
'python-gobject'
|
||||||
'ffmpeg'
|
'ffmpeg'
|
||||||
|
'glib2'
|
||||||
)
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
'libcanberra: play system notification sounds'
|
'libcanberra: play system notification sounds'
|
||||||
|
@ -29,9 +30,12 @@ sha256sums=()
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/../" # go to your project root
|
cd "$srcdir/../" # go to your project root
|
||||||
|
|
||||||
glib-compile-resources src/resources/resources.xml \
|
glib-compile-resources src/resources/resources.xml \
|
||||||
--target=src/recoder/resources.gresource \
|
--target=src/recoder/resources.gresource \
|
||||||
--sourcedir=src/resources
|
--sourcedir=src/resources
|
||||||
|
|
||||||
|
|
||||||
python -m build --wheel --outdir dist
|
python -m build --wheel --outdir dist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,4 +47,8 @@ package() {
|
||||||
"$pkgdir/usr/share/applications/net.jeena.Recoder.desktop"
|
"$pkgdir/usr/share/applications/net.jeena.Recoder.desktop"
|
||||||
install -Dm644 src/resources/net.jeena.Recoder.svg \
|
install -Dm644 src/resources/net.jeena.Recoder.svg \
|
||||||
"$pkgdir/usr/share/icons/hicolor/scalable/apps/net.jeena.Recoder.svg"
|
"$pkgdir/usr/share/icons/hicolor/scalable/apps/net.jeena.Recoder.svg"
|
||||||
|
install -Dm644 src/resources/net.jeena.recoder.gschema.xml \
|
||||||
|
"$pkgdir/usr/share/glib-2.0/schemas/net.jeena.recoder.gschema.xml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install=recoder.install
|
11
recoder.install
Normal file
11
recoder.install
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
post_install() {
|
||||||
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue