summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVladimir Kosteley2015-06-16 21:14:52 +0600
committerVladimir Kosteley2015-06-16 21:14:52 +0600
commit6118cced800de272a7d29b75e0dbd2db6c383d0f (patch)
tree50a91b5f8c0b6847b1ce9234b3d4e602a058affb /PKGBUILD
downloadaur-6118cced800de272a7d29b75e0dbd2db6c383d0f.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44f847a962b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Vladimir Kosteley <zzismd@gmail.com>
+_pkgname=screenshotgun
+pkgname=$_pkgname-git
+pkgver=88
+pkgrel=1
+pkgdesc="Open screenshoter with server part"
+arch=(any)
+url="http://screenshotgun.com"
+license=('GPL')
+groups=()
+depends=()
+makedepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("$_pkgname::git+https://github.com/ismd/screenshotgun.git")
+noextract=()
+sha256sums=() #autofill using updpkgsums
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-list HEAD --count
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+ sed -i "s/\#define VERSION \".*\"/\#define VERSION \"$pkgver\"/g" `find . -name const.h`
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ qmake -config release
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ strip screenshotgun
+ install -Dm755 "$srcdir/$_pkgname/screenshotgun" "$pkgdir/usr/bin/screenshotgun"
+
+ install -Dm644 "$srcdir/$_pkgname/dist/screenshotgun.desktop" "$pkgdir/usr/share/applications/screenshotgun.desktop"
+ install -Dm644 "$srcdir/$_pkgname/dist/screenshotgun.png" "$pkgdir/usr/share/pixmaps/screenshotgun.png"
+}