Skip to content

Commit

Permalink
emacs: new package for pgtk
Browse files Browse the repository at this point in the history
  • Loading branch information
sgn committed Aug 3, 2023
1 parent e3cd5dc commit de5a2ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions srcpkgs/emacs-pgtk
20 changes: 19 additions & 1 deletion srcpkgs/emacs/template
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -56,6 +56,7 @@ post_extract() {
cp -a emacs-* nox
cp -a emacs-* x11
cp -a emacs-* gtk3
cp -a emacs-* pgtk
}

do_configure() {
Expand All @@ -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() {
Expand Down Expand Up @@ -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
}
}

0 comments on commit de5a2ab

Please sign in to comment.