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-gobject'
|
||||
'ffmpeg'
|
||||
'glib2'
|
||||
)
|
||||
optdepends=(
|
||||
'libcanberra: play system notification sounds'
|
||||
|
@ -29,9 +30,12 @@ sha256sums=()
|
|||
|
||||
build() {
|
||||
cd "$srcdir/../" # go to your project root
|
||||
|
||||
glib-compile-resources src/resources/resources.xml \
|
||||
--target=src/recoder/resources.gresource \
|
||||
--sourcedir=src/resources
|
||||
|
||||
|
||||
python -m build --wheel --outdir dist
|
||||
}
|
||||
|
||||
|
@ -43,4 +47,8 @@ package() {
|
|||
"$pkgdir/usr/share/applications/net.jeena.Recoder.desktop"
|
||||
install -Dm644 src/resources/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