summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91b9547d34f323eb357a7367844a32106d783fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: naelstrof <naelstrof@gmail.com>
pkgname=maim-git
_realname=maim
pkgver=v5.4.68.r2.gf0c5de9
pkgrel=1
provides=( 'maim' )
conflicts=( 'maim' )
pkgdesc="maim (make image) makes an image out of the given area on the given X screen. Defaults to the whole screen."
arch=( 'i686' 'x86_64' )
url="https://github.com/naelstrof/$_realname"
license=( 'GPL3' )
depends=( 'slop' 'bzip2' 'freetype2' 'glibc' 'libpng' 'libjpeg-turbo' 'libx11' 'libxext' 'zlib' )
makedepends=( 'cmake' 'glm' )
source=( "maim::git+https://github.com/naelstrof/maim.git" )
md5sums=('SKIP')

pkgver() {
    cd "$_realname"
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/$_realname"
    cmake -DCMAKE_INSTALL_PREFIX=/usr ./
    make
}

package() {
    cd "$srcdir/$_realname"
    make DESTDIR="$pkgdir" install
}