summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1daa6f5efa4b66b6171b3173f8df69049fef67a (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
37
38
39
40
# Maintainer: taotieren <admin@taotieren.com>

pkgname=camv-rnd-svn
pkgver=r962
pkgrel=1
pkgdesc="free/open source, small, flexible viewer for PCB-related CAM file formats"
arch=($CARCH)
url="http://www.repo.hu/projects/camv-rnd"
license=('LGPL-2.0-or-later')
provides=(${pkgname%-svn})
conflicts=(${pkgname%-svn})
depends=(
    glibc
    # AUR
    librnd4
)
makedepends=(
    subversion
)
optdepends=(
)
source=("svn://svn.repo.hu/camv-rnd/trunk")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/trunk/"
    local ver="$(svnversion)"
    printf "r%s" "${ver//[[:alpha:]]/}"
}

build() {
    cd "$srcdir/trunk/"
    ./configure --prefix=/usr
    make LDFLAGS="-Wl,-z,now -Wl,-z,relro"
}

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