emacs: new package for pgtk
This commit is contained in:
parent
e3cd5dcfba
commit
de5a2ab190
|
@ -0,0 +1 @@
|
|||
emacs
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue