summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2018-10-25 14:08:45 +0200
committerSefa Eyeoglu2018-10-25 14:12:52 +0200
commitf599b9e5e4fec2abdc7f02ccc7d8afa3dde3aada (patch)
tree4b1c2aed03ba299b3c3c850c1e61777250920f9d
parent4cc476764c52b7bc1bab029dbc4a5928dfd6d727 (diff)
downloadaur-f599b9e5e4fec2abdc7f02ccc7d8afa3dde3aada.tar.gz
Change Maintainer; Improve PKGBUILD quality; Add install file
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD62
-rw-r--r--gtk3-nocsd-git.install7
3 files changed, 51 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5af0da04dcb..e9f1a4460ad 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,20 @@
pkgbase = gtk3-nocsd-git
pkgdesc = A hack to disable gtk+ 3 client side decoration
pkgver = r55.82ff5a0
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/PCMan/gtk3-nocsd
+ install = gtk3-nocsd-git.install
arch = i686
arch = x86_64
license = LGPL
makedepends = git
makedepends = gobject-introspection
depends = gtk3
- source = git+https://github.com/PCMan/gtk3-nocsd
+ conflicts = gtk3-nocsd
+ source = git+https://github.com/PCMan/gtk3-nocsd.git
source = 30-gtk3-nocsd.sh
- sha256sums = SKIP
- sha256sums = da498916ffc29b1d13de43271a46c0c2582c4cdad8d1ddd15217b868f83d86e8
+ sha512sums = SKIP
+ sha512sums = 734e9ecd74fa677e185af9f91ac0abbc99bc55c1405aaaff219e24a5ceba7e6bff658ff428bde3dcb41a5c8a17b4cc8fb68abfed79306404941290ee1324c170
pkgname = gtk3-nocsd-git
diff --git a/PKGBUILD b/PKGBUILD
index b26c4564f7d..48a26569cb9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,55 @@
-# Maintainer: Kazutoshi Noguchi <noguchi.kazutosi+lGlcOenS [at] gmail [dot] com>
+# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
+# Contributor: Kazutoshi Noguchi <noguchi.kazutosi+lGlcOenS [at] gmail [dot] com>
# Contributor: Marco Kundt <mrckndt [at] gmail [dot] com>
pkgname=gtk3-nocsd-git
pkgver=r55.82ff5a0
-pkgrel=3
-pkgdesc='A hack to disable gtk+ 3 client side decoration'
-arch=('i686' 'x86_64')
-url='https://github.com/PCMan/gtk3-nocsd'
-license=('LGPL')
-depends=('gtk3')
-makedepends=('git' 'gobject-introspection')
-source=(git+https://github.com/PCMan/gtk3-nocsd
- 30-gtk3-nocsd.sh)
+pkgrel=4
+pkgdesc="A hack to disable gtk+ 3 client side decoration"
+arch=("i686" "x86_64")
+url="https://github.com/PCMan/gtk3-nocsd"
+license=("LGPL")
-sha256sums=('SKIP'
- 'da498916ffc29b1d13de43271a46c0c2582c4cdad8d1ddd15217b868f83d86e8')
+depends=("gtk3")
+conflicts=("gtk3-nocsd")
-_gitname='gtk3-nocsd'
+makedepends=(
+ "git"
+ "gobject-introspection"
+)
+
+source=(
+ "git+https://github.com/PCMan/gtk3-nocsd.git"
+ "30-gtk3-nocsd.sh"
+)
+
+sha512sums=(
+ "SKIP"
+ "734e9ecd74fa677e185af9f91ac0abbc99bc55c1405aaaff219e24a5ceba7e6bff658ff428bde3dcb41a5c8a17b4cc8fb68abfed79306404941290ee1324c170"
+)
+
+install="$pkgname.install"
+
+_gitname="gtk3-nocsd"
pkgver() {
- cd "$srcdir/$_gitname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/$_gitname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/$_gitname"
- make
+ cd "$srcdir/$_gitname"
+ make
}
package() {
- cd "$srcdir/$_gitname"
- install -D -m 0755 gtk3-nocsd "${pkgdir}"/usr/bin/gtk3-nocsd
- install -D -m 0644 gtk3-nocsd.1 "${pkgdir}"/usr/share/man/man1/gtk3-nocsd.1
- install -D -m 0644 gtk3-nocsd.bash-completion "${pkgdir}"/usr/share/bash-completion/completions/gtk3-nocsd
+ cd "$srcdir/$_gitname"
+ install -D -m 0755 gtk3-nocsd "${pkgdir}"/usr/bin/gtk3-nocsd
+ install -D -m 0644 gtk3-nocsd.1 "${pkgdir}"/usr/share/man/man1/gtk3-nocsd.1
+ install -D -m 0644 gtk3-nocsd.bash-completion "${pkgdir}"/usr/share/bash-completion/completions/gtk3-nocsd
- install -D -m 0644 libgtk3-nocsd.so.0 "${pkgdir}"/usr/lib/libgtk3-nocsd.so.0
+ install -D -m 0644 libgtk3-nocsd.so.0 "${pkgdir}"/usr/lib/libgtk3-nocsd.so.0
- cd "$srcdir"
- install -D -m 0755 30-gtk3-nocsd.sh "${pkgdir}"/etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh
+ cd "$srcdir"
+ install -D -m 0755 30-gtk3-nocsd.sh "${pkgdir}"/etc/X11/xinit/xinitrc.d/30-gtk3-nocsd.sh
}
diff --git a/gtk3-nocsd-git.install b/gtk3-nocsd-git.install
new file mode 100644
index 00000000000..f354edb0ce3
--- /dev/null
+++ b/gtk3-nocsd-git.install
@@ -0,0 +1,7 @@
+function post_install {
+ echo "You need to restart your X session to apply the changes."
+}
+
+function post_upgrade {
+ post_install
+}