diff options
author | Yoshi2889 | 2016-03-06 03:09:45 +0100 |
---|---|---|
committer | Yoshi2889 | 2016-03-06 03:09:45 +0100 |
commit | 1d7a9a5a780e32a12535d7e20b13a2859dea64ea (patch) | |
tree | 7970801cd7c0d9419e691549722454581a0faf3e | |
download | aur-1d7a9a5a780e32a12535d7e20b13a2859dea64ea.tar.gz |
Initial commit
Signed-off-by: Yoshi2889 <rick.2889@gmail.com>
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 62 | ||||
-rw-r--r-- | pamac.install | 18 |
3 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c6d8720aeac6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +# Generated by mksrcinfo v8 +# Sun Mar 6 02:09:27 UTC 2016 +pkgbase = pamac-pacaur + pkgdesc = A Gtk3 frontend for libalpm patched to work with pacaur + pkgver = 3.2.0 + pkgrel = 1 + url = https://github.com/Yoshi2889/pamac + install = pamac.install + arch = any + license = GPL3 + makedepends = gettext + makedepends = itstool + makedepends = vala>=0.28 + depends = glib2>=2.42 + depends = json-glib + depends = libsoup + depends = dbus-glib + depends = polkit + depends = vte3>=0.38 + depends = gtk3>=3.18 + depends = libnotify + depends = desktop-file-utils + depends = pacman>=5.0 + depends = gnutls>=3.4 + optdepends = polkit-gnome: needed for authentification in Cinnamon, Gnome + optdepends = lxsession: needed for authentification in Xfce, LXDE etc. + optdepends = pacaur: needed for AUR support + provides = pamac + conflicts = pamac + options = !emptydirs + backup = etc/pamac.conf + source = pamac-3.2.0.tar.gz::https://github.com/Yoshi2889/pamac/archive/v3.2.0-patched.tar.gz + sha256sums = 76738039266bcc202acce4c8624e7b4726ec93eb29e01f000ab8139cdd69bb4f + +pkgname = pamac-pacaur + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b335c44eedfd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Original package: +# Contributor: Zeph <zeph33@gmail.com> +# Maintainer: Zeph <zeph33@gmail.com> + +# Patched package: +# Maintainer: Rick <rick.2889@gmail.com> + +pkgname=pamac-pacaur +pkgver=3.2.0 +_pkgver=3.2.0 +pkgrel=1 +# This is the release package so the below _gitcommit variable should (usually) be commented out. +#_gitcommit="7266a5766441725210e7e4af3ee7da501cf0e38f" +pkgdesc="A Gtk3 frontend for libalpm patched to work with pacaur" +arch=('any') +url="https://github.com/Yoshi2889/pamac" +license=('GPL3') +depends=('glib2>=2.42' 'json-glib' 'libsoup' 'dbus-glib' 'polkit' 'vte3>=0.38' 'gtk3>=3.18' + 'libnotify' 'desktop-file-utils' 'pacman>=5.0' 'gnutls>=3.4') +optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome' + 'lxsession: needed for authentification in Xfce, LXDE etc.' + 'pacaur: needed for AUR support') +makedepends=('gettext' 'itstool' 'vala>=0.28') +backup=('etc/pamac.conf') +provides=('pamac') +conflicts=('pamac') +options=(!emptydirs) +install=pamac.install + +if [ "${_gitcommit}" != "" ]; then + source=("pamac-$pkgver-$pkgrel.tar.gz::$url/archive/$_gitcommit.tar.gz") +else + source=("pamac-$pkgver.tar.gz::$url/archive/v$pkgver-patched.tar.gz") +fi + +sha256sums=('76738039266bcc202acce4c8624e7b4726ec93eb29e01f000ab8139cdd69bb4f') + +prepare() { + if [ "$_gitcommit" != "" ]; then + mv "$srcdir/pamac-$_gitcommit" "$srcdir/pamac-$pkgver" + fi + + # adjust version string + cd "$srcdir/pamac-$pkgver-patched/src" + sed -i -e "s|\"$_pkgver\"|\"$pkgver-$pkgrel\"|g" manager_window.vala + cd "$srcdir/pamac-$pkgver-patched/" + # patches here +} + +build() { + cd "$srcdir/pamac-$pkgver-patched" + + # build + make all +} + +package() { + cd "$srcdir/pamac-$pkgver-patched" + make prefix="$pkgdir"/usr sysconfdir="$pkgdir"/etc install +} + +# vim:set ts=2 sw=2 et: diff --git a/pamac.install b/pamac.install new file mode 100644 index 000000000000..145249d6f8ab --- /dev/null +++ b/pamac.install @@ -0,0 +1,18 @@ +post_install() { + gtk-update-icon-cache /usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null 2>&1 + printf '==> The polkit-gnome agent is no longer autostarted by default\n' + printf ' except in GNOME Flashback.\n' + printf ' For Xfce, LXDE etc., 'lxsession' is the suggested lightweight alternative.\n' + printf ' See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n' + printf ' for more details.\n' +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |