summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmfrick2019-12-23 20:41:29 +0100
committerkmfrick2019-12-23 20:41:29 +0100
commit2de924513c52f75a2b466e6c867a84519166029c (patch)
tree03b424a2d940ea402f9ab84d39968feef23361d1
parent7f94961b1ffd29175263584e0bbb30e48071fec2 (diff)
downloadaur-2de924513c52f75a2b466e6c867a84519166029c.tar.gz
AUR guidelines compliance thanks to yochananmarqos
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD28
2 files changed, 22 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 91b061b1885..b8e24e7e778 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,12 @@
pkgbase = ephemeral-git
pkgdesc = The always-incognito web browser. Browse the Internet in private without leaving a trace of history on your computer.
- pkgver = git
+ pkgver = 6.1.1.r2.d5d701e
pkgrel = 1
url = https://github.com/cassidyjames/ephemeral
arch = x86_64
license = GPL3
+ makedepends = git
+ makedepends = meson
depends = dconf
depends = desktop-file-utils
depends = glib2>=2.49.2
diff --git a/PKGBUILD b/PKGBUILD
index f8914b2cc64..897dc6d5bba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,29 +5,39 @@ pkgname=ephemeral-git
conflicts=('ephemeral-bin')
_appname=ephemeral
_projectname=com.github.cassidyjames.ephemeral
-pkgver=git
+pkgver=6.1.1.r2.d5d701e
pkgrel=1
pkgdesc="The always-incognito web browser. Browse the Internet in private without leaving a trace of history on your computer."
arch=('x86_64')
url="https://github.com/cassidyjames/ephemeral"
license=('GPL3')
+makedepends=('git' 'meson')
depends=('dconf' 'desktop-file-utils' 'glib2>=2.49.2' 'granite>=5.2.3' 'gtk3>=3.22.29' 'hicolor-icon-theme' 'libdazzle>=3.25.3' 'libgee>=0.8.3' 'libsoup>=2.32.2' 'webkit2gtk>=2.15.4')
source=("git+https://github.com/cassidyjames/ephemeral")
md5sums=('SKIP')
+pkgver() {
+ cd "${srcdir}/${pkgname%-git}"
+ printf "%s" "$(git describe --long --tags | sed -e 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ cd "${srcdir}/${_appname}"
+ meson build --prefix=/usr
+ ninja -C build
+}
+
+
package(){
cd "${srcdir}/${_appname}"
- meson build --prefix=/usr
- cd build
- ninja
- DESTDIR="${pkgdir}" ninja install
- # Rename major files from for better system integration
- mv "${pkgdir}/usr/bin/${_projectname}" "${pkgdir}/usr/bin/${_appname}"
- mv "${pkgdir}/usr/share/applications/${_projectname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
+ DESTDIR="$pkgdir" ninja -C build install
+ # Rename major files for better system integration
+ mv "${pkgdir}/usr/bin/${_projectname}" "${pkgdir}/usr/bin/${_appname}"
+ mv "${pkgdir}/usr/share/applications/${_projectname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
# Update desktop file to match renamed package binary
- sed -i "s/Exec=${_projectname}/Exec=${_appname}/" "${pkgdir}/usr/share/applications/${_appname}.desktop"
+ sed -i "s/Exec=${_projectname}/Exec=${_appname}/" "${pkgdir}/usr/share/applications/${_appname}.desktop"
}