emacs: new package for pgtk

This commit is contained in:
Đoàn Trần Công Danh 2023-08-01 22:14:33 +07:00
parent e3cd5dcfba
commit de5a2ab190
2 changed files with 20 additions and 1 deletions

1
srcpkgs/emacs-pgtk Symbolic link
View File

@ -0,0 +1 @@
emacs

View File

@ -1,7 +1,7 @@
# Template file for 'emacs'
pkgname=emacs
version=29.1
revision=1
revision=2
create_wrksrc=required
build_style=gnu-configure
configure_args="--with-file-notification=inotify --with-modules
@ -56,6 +56,7 @@ post_extract() {
cp -a emacs-* nox
cp -a emacs-* x11
cp -a emacs-* gtk3
cp -a emacs-* pgtk
}
do_configure() {
@ -70,12 +71,16 @@ do_configure() {
cd $wrksrc/gtk3
./configure --with-x-toolkit=gtk3 --with-xwidgets ${configure_args}
cd $wrksrc/pgtk
./configure --with-pgtk ${configure_args}
}
do_build() {
make ${makejobs} -C nox
make ${makejobs} -C x11
make ${makejobs} -C gtk3
make ${makejobs} -C pgtk
}
do_install() {
@ -124,3 +129,16 @@ emacs-gtk3_package() {
rm -rf ${PKGDESTDIR}/usr/lib/systemd
}
}
emacs-pgtk_package() {
depends="emacs-common-${version}_${revision} desktop-file-utils hicolor-icon-theme"
provides="emacs-${version}_${revision}"
replaces="emacs>=0"
short_desc+=" - Pure GTK version"
pkg_install() {
make DESTDIR=${PKGDESTDIR} -C ${wrksrc}/pgtk install
rm -f ${PKGDESTDIR}/usr/bin/ctags
rm -rf ${PKGDESTDIR}/usr/share/{emacs,man,info}
rm -rf ${PKGDESTDIR}/usr/lib/systemd
}
}