desktop/gendesk/PKGBUILD

36 lines
1.0 KiB
Bash
Raw Normal View History

2013-12-09 05:40:59 +08:00
# Contributor: abveritas@chakra-project.org
pkgname=gendesk
2016-05-22 18:31:20 +08:00
pkgver=0.6.4
pkgrel=1
pkgdesc="Utility to generate .desktop files and download icons"
2013-12-09 05:40:59 +08:00
arch=('x86_64')
url="http://roboticoverlords.org/gendesk/"
license=('MIT')
depends=('glibc')
2014-06-17 01:43:59 +08:00
makedepends=('go' 'git' 'mercurial')
depends=('glibc')
2013-12-02 03:17:10 +08:00
source=("http://roboticoverlords.org/$pkgname/$pkgname-$pkgver.tar.xz"
2014-06-17 01:43:59 +08:00
'http://roboticoverlords.org/images/default.png')
2016-05-22 18:31:20 +08:00
sha256sums=('de7d3ddd6e261dc8b6e8e126b83f91db010157de5470aafd32e90bd7bb89f28d'
'4d96eded48e536d02e35727c36dc20844c2e44654e81baf78e10aee4eb48e837')
2014-06-17 01:43:59 +08:00
prepare() {
2016-05-22 18:31:20 +08:00
cd "$pkgname-$pkgver"
GOPATH=`pwd` go get -d -v
2014-06-17 01:43:59 +08:00
}
build() {
2014-06-17 01:43:59 +08:00
cd "$pkgname-$pkgver"
2016-05-22 18:31:20 +08:00
GOPATH=`pwd` go build
}
package() {
2014-06-17 01:43:59 +08:00
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$srcdir/default.png" "$pkgdir/usr/share/pixmaps/default.png"
2014-06-17 01:43:59 +08:00
install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}