2018-11-20 13:30:55 +00:00
|
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
2013-09-28 05:15:37 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - !strip option, stripped binary fails under ARM
|
|
|
|
|
|
|
|
pkgname=gendesk
|
2024-05-20 20:30:46 +00:00
|
|
|
pkgver=1.0.10
|
|
|
|
pkgrel=1
|
2024-05-02 00:18:40 +00:00
|
|
|
pkgdesc='Utility for generating desktop files by specifying a minimum of information'
|
2019-09-17 03:47:58 +00:00
|
|
|
arch=(x86_64)
|
2018-11-20 13:30:55 +00:00
|
|
|
url='https://gendesk.roboticoverlords.org/'
|
2019-09-17 03:47:58 +00:00
|
|
|
license=(MIT)
|
2019-09-17 04:26:39 +00:00
|
|
|
makedepends=(go)
|
2024-05-02 00:18:40 +00:00
|
|
|
options=(!strip !lto)
|
2024-05-20 20:30:46 +00:00
|
|
|
validpgpkeys=(8A9BC5819C54FEB3DC2A9B48C32217F6F13FF192)
|
|
|
|
source=('https://roboticoverlords.org/images/gendesk.png'
|
|
|
|
"https://roboticoverlords.org/$pkgname/$pkgname-$pkgver.tar.xz"{,.asc})
|
|
|
|
b2sums=('4676b13f6154f511497f5264310f861af2fab798d9fc5d9e39ae2379da3fd24317f777ec437d57a58aef344158cfe77bdce9f32bc17eeeb7126e0954af417b35'
|
|
|
|
'7c90846db6a053b2b5fe2acafaa3974e27dc1dea5001dc5e2b62a3ebd4626e5fd9d3508a1202aa99c8ad063e71d4970cf8328deb3855863198bcfd25d8c7dbc6'
|
|
|
|
'SKIP')
|
2013-09-28 05:15:37 +00:00
|
|
|
|
|
|
|
build() {
|
2018-12-22 02:18:28 +00:00
|
|
|
cd $pkgname-$pkgver
|
2024-05-20 20:30:46 +00:00
|
|
|
go build -buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags="-s -w -linkmode=external -extldflags '$LDFLAGS'"
|
2013-09-28 05:15:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-12-22 02:18:28 +00:00
|
|
|
cd $pkgname-$pkgver
|
2021-02-21 19:53:22 +00:00
|
|
|
install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
|
|
|
|
install -Dm644 $pkgname.1.gz "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
|
2024-05-20 20:30:46 +00:00
|
|
|
install -Dm644 "$srcdir/gendesk.png" "$pkgdir/usr/share/pixmaps/gendesk.png"
|
2013-09-28 05:15:37 +00:00
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|