summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41778da790761c499edc1624021396910be2e3b1 (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
32
33
34
35
36
# Maintainer: Corentin Delcourt <aur@codl.fr>

pkgname=autocutsel-git
pkgver=0.10.0.r0.g35388eb
pkgrel=2
pkgdesc="Synchronizes the two copy/paste buffers mainly used by X applications"
arch=(i686 x86_64)
url='http://www.nongnu.org/autocutsel/'
install=autocutsel.install
depends=('libxaw')
makedepends=('git')
license=('GPL')
provides=('autocutsel')
conflicts=('autocutsel')
source=("${pkgname}"::'git+https://github.com/sigmike/autocutsel.git'
        'autocutsel.install')
md5sums=('SKIP'
         'd5616ff1b64c78473c02a4d8c88675bd')


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

build() {
    cd "${srcdir}/${pkgname}"
    ./bootstrap
    ./configure --prefix=/usr
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    make prefix="${pkgdir}/usr" install
}