blob: 021b6d09a82fe2859c212a79c95bf7a5608b4207 (
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
41
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=copy-pasta-git
pkgver=0.0.1.r28.g954489a
pkgrel=1
pkgdesc="Universal copy paste service, works across different machines"
arch=('x86_64')
url='https://github.com/jutkko/copy-pasta'
license=('MIT')
provides=("${pkgname%-git}")
depends=('glibc')
makedepends=('git' 'dep' 'go-pie')
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
mkdir -p gopath/src/github.com/${pkgname%-git}
ln -rTsf ${pkgname%-git} gopath/src/github.com/${pkgname%-git}/${pkgname%-git}
export GOPATH="$srcdir"/gopath
cd gopath/src/github.com/${pkgname%-git}/${pkgname%-git}
if [[ ! -f Gopkg.toml ]]; then
dep init -v
fi
dep ensure -v
}
build() {
export GOPATH="$srcdir"/gopath
cd gopath/src/github.com/${pkgname%-git}/${pkgname%-git}
go install -v .
}
package() {
install -Dm755 "${srcdir}/gopath/bin/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|