aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-05-14 03:25:33 +0700
committerZee Eichel <zee@dracos-linux.org>2019-05-14 03:25:33 +0700
commit8d6fca58f8a044d2970cc1d103616d17cd5d7359 (patch)
treeec56792d45e6fe8334e7ce048ed7d73778ee728c
parentc99a4e5556d85b0a65ab7a2b2a4fe2c975f73112 (diff)
downloaddemit.extra-git.repo-8d6fca58f8a044d2970cc1d103616d17cd5d7359.tar.gz
demit.extra-git.repo-8d6fca58f8a044d2970cc1d103616d17cd5d7359.tar.bz2
demit.extra-git.repo-8d6fca58f8a044d2970cc1d103616d17cd5d7359.zip
add gtk2,gtk3,ntp
-rw-r--r--gtk2/PKGBUILD43
-rw-r--r--gtk2/gtk-query-immodules-2.0.hook 11
-rw-r--r--gtk2/gtkrc3
-rw-r--r--gtk3/PKGBUILD49
-rw-r--r--gtk3/gtk-query-immodules-3.0.hook11
-rw-r--r--gtk3/gtk-update-icon-cache.hook13
-rw-r--r--gtk3/gtk-update-icon-cache.script10
-rw-r--r--ntp/PKGBUILD62
-rw-r--r--ntp/ntp.install14
9 files changed, 216 insertions, 0 deletions
diff --git a/gtk2/PKGBUILD b/gtk2/PKGBUILD
new file mode 100644
index 0000000..6255dc5
--- /dev/null
+++ b/gtk2/PKGBUILD
@@ -0,0 +1,43 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+pkgname=gtk2
+pkgver=2.24.32
+pkgrel=1
+pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
+arch=('x86_64')
+url="http://www.gtk.org/"
+license=('LGPL')
+depends=('atk' 'gdk-pixbuf' 'pango')
+optdepends=('gobject-introspection' 'cups')
+source=("https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-${pkgver}.tar.xz"
+ "gtk-query-immodules-2.0.hook"
+ "gtkrc")
+sha256sums=('b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e'
+ '3d53df9166f7e37c153eb4a3961a5785455e7328ae5a9320a62f48c76c7aea70'
+ 'bc968e3e4f57e818430130338e5f85a5025e21d7e31a3293b8f5a0e58362b805')
+
+prepare() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in
+}
+
+build() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-man
+
+ make
+}
+
+package() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ make install DESTDIR="${pkgdir}"
+
+ rm -rf "${pkgdir}/usr/bin/gtk-update-icon-cache" "${pkgdir}/usr/share/man/man1/gtk-update-icon-cache.1"
+
+ install -v -Dm644 "${srcdir}/gtkrc" "${pkgdir}/usr/share/gtk-2.0/gtkrc"
+ install -v -Dm644 "${srcdir}/gtk-query-immodules-2.0.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook"
+}
diff --git a/gtk2/gtk-query-immodules-2.0.hook b/gtk2/gtk-query-immodules-2.0.hook
new file mode 100644
index 0000000..40a0aa7
--- /dev/null
+++ b/gtk2/gtk-query-immodules-2.0.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/gtk-2.0/2.10.0/immodules/*.so
+
+[Action]
+Description = Probing GTK2 input method modules...
+When = PostTransaction
+Exec = /usr/bin/gtk-query-immodules-2.0 --update-cache
diff --git a/gtk2/gtkrc b/gtk2/gtkrc
new file mode 100644
index 0000000..1ee9497
--- /dev/null
+++ b/gtk2/gtkrc
@@ -0,0 +1,3 @@
+gtk-icon-theme-name = "Adwaita"
+gtk-theme-name = "Adwaita"
+gtk-font-name = "Cantarell 11"
diff --git a/gtk3/PKGBUILD b/gtk3/PKGBUILD
new file mode 100644
index 0000000..c888a66
--- /dev/null
+++ b/gtk3/PKGBUILD
@@ -0,0 +1,49 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=gtk3
+pkgver=3.24.5
+pkgrel=1
+pkgdesc="GObject-based multi-platform GUI toolkit"
+arch=('x86_64')
+url="http://www.gtk.org/"
+license=('LGPL')
+depends=('at-spi2-atk' 'at-spi2-core' 'atk' 'fribidi' 'gdk-pixbuf' 'shared-mime-info' 'pango' 'libepoxy' 'libxkbcommon' 'iso-codes')
+optdepends=('gobject-introspection' 'wayland' 'wayland-protocols')
+source=("https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-${pkgver}.tar.xz"
+ "gtk-query-immodules-3.0.hook"
+ "gtk-update-icon-cache.hook"
+ "gtk-update-icon-cache.script"
+ "settings.ini")
+sha256sums=('0be5fb0d302bc3de26ab58c32990d895831e2b7c7418d0ffea1206d6a3ddb02f'
+ 'de46e5514ff39a7a65e01e485e874775ab1c0ad20b8e94ada43f4a6af1370845'
+ '496064a9dd6214bd58f689dd817dbdc4d7f17d42a8c9940a87018c3f829ce308'
+ 'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541'
+ '01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202'
+)
+
+build() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-cloudprint \
+ --disable-schemas-compile \
+ --enable-broadway-backend \
+ --enable-wayland-backend \
+ --enable-x11-backend \
+ --disable-man \
+ --disable-doc
+ make
+}
+
+package() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ make install DESTDIR="${pkgdir}"
+
+ install -v -Dm644 "${srcdir}/settings.ini" "${pkgdir}/usr/share/gtk-3.0/settings.ini"
+
+ install -v -Dm644 "${srcdir}/gtk-query-immodules-3.0.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook"
+ install -v -Dm644 "${srcdir}/gtk-update-icon-cache.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-update-icon-cache.hook"
+ install -v -Dm755 "${srcdir}/gtk-update-icon-cache.script" "${pkgdir}/usr/share/libalpm/scripts/gtk-update-icon-cache"
+}
diff --git a/gtk3/gtk-query-immodules-3.0.hook b/gtk3/gtk-query-immodules-3.0.hook
new file mode 100644
index 0000000..c7703cf
--- /dev/null
+++ b/gtk3/gtk-query-immodules-3.0.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/gtk-3.0/3.0.0/immodules/*.so
+
+[Action]
+Description = Probing GTK3 input method modules...
+When = PostTransaction
+Exec = /usr/bin/gtk-query-immodules-3.0 --update-cache
diff --git a/gtk3/gtk-update-icon-cache.hook b/gtk3/gtk-update-icon-cache.hook
new file mode 100644
index 0000000..fca3fdc
--- /dev/null
+++ b/gtk3/gtk-update-icon-cache.hook
@@ -0,0 +1,13 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/icons/*/
+Target = !usr/share/icons/*/?*
+
+[Action]
+Description = Updating icon theme caches...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/gtk-update-icon-cache
+NeedsTargets
diff --git a/gtk3/gtk-update-icon-cache.script b/gtk3/gtk-update-icon-cache.script
new file mode 100644
index 0000000..ee0f1d1
--- /dev/null
+++ b/gtk3/gtk-update-icon-cache.script
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+while read -r f; do
+ if [[ -e ${f}index.theme ]]; then
+ gtk-update-icon-cache -q "$f"
+ elif [[ -d $f ]]; then
+ rm -f "${f}icon-theme.cache"
+ rmdir --ignore-fail-on-non-empty "$f"
+ fi
+done
diff --git a/ntp/PKGBUILD b/ntp/PKGBUILD
new file mode 100644
index 0000000..b8ca496
--- /dev/null
+++ b/ntp/PKGBUILD
@@ -0,0 +1,62 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=ntp
+pkgver=4.2.8
+pkgrel=1
+pkgdesc="Time synchronized Utilities"
+arch=('x86_64')
+url="https://www.eecis.udel.edu/~ntp/"
+license=('GPL')
+depends=("io-socket-ssl-pl")
+source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p12.tar.gz")
+sha256sums=("709b222b5013d77d26bfff532b5ea470a8039497ef29d09363931c036cb30454")
+
+prepare() {
+cd "$pkgname"-4.2.8p12
+sed -e 's/"(\\S+)"/"?([^\\s"]+)"?/' \
+ -i scripts/update-leap/update-leap.in
+}
+
+build() {
+ cd "$pkgname"-4.2.8p12
+ ./configure CFLAGS="-O2 -g -fPIC" \
+ --prefix=/usr \
+ --bindir=/usr/sbin \
+ --sysconfdir=/etc \
+ --enable-linuxcaps \
+ --with-lineeditlibs=readline \
+ --docdir=/usr/share/doc/ntp-4.2.8p12 &&
+make
+}
+
+package() {
+ cd "$pkgname"-4.2.8p12
+ make DESTDIR="${pkgdir}" install
+ install -v -d $pkgdir/etc
+ rm -rf $pkgdir/usr/share/{doc,man}
+
+install=ntp.install
+#config file
+
+cat > $pkgdir/etc/ntp.conf << "EOF"
+# Asia
+server 0.asia.pool.ntp.org
+
+# Australia
+server 0.oceania.pool.ntp.org
+
+# Europe
+server 0.europe.pool.ntp.org
+
+# North America
+server 0.north-america.pool.ntp.org
+
+# South America
+server 2.south-america.pool.ntp.org
+
+driftfile /var/lib/ntp/ntp.drift
+pidfile /var/run/ntpd.pid
+
+leapfile /etc/ntp.leapseconds
+EOF
+}
diff --git a/ntp/ntp.install b/ntp/ntp.install
new file mode 100644
index 0000000..24f0603
--- /dev/null
+++ b/ntp/ntp.install
@@ -0,0 +1,14 @@
+pre_install() {
+ groupadd -g 87 ntp
+ useradd -c "Network Time Protocol" -g ntp -d /var/lib/ntp -u 87 -s /bin/false ntp
+}
+
+post_install() {
+ install -v -o ntp -g ntp -d /var/lib/ntp
+}
+
+post_remove() {
+ userdel ntp
+ groupdel ntp
+ rm -rf /var/lib/ntp
+}