summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16adb5440215145503594d7c70b9071c1aac32dc (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
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>

pkgname=addinclude
pkgver=1.0.1
pkgrel=2
pkgdesc='Add include statements to header- and sourcefiles, for C and C++'
arch=(x86_64)
url='https://addinclude.roboticoverlords.org/'
license=(GPL2)
makedepends=(gcc-go)
source=("https://addinclude.roboticoverlords.org/$pkgname-$pkgver.tar.xz"{,.asc})
validpgpkeys=('962855F072C7A01846405864FCF3C8CB5CF9C8D4')
sha256sums=('af3f5a7d3472b6a871150d82b9905e6a6571ad8d80820e382e20179c7aac2e67'
            'SKIP')

build() {
  cd "$pkgname-$pkgver"

  go build -gccgoflags "-Wl,-z,relro,-z,now" -o $pkgname
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm644 $pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
}

# vim: ts=2 sw=2 et: