diff options
author | Yigit Sever | 2021-10-29 01:30:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 01:30:24 +0300 |
commit | 31d147b20c67d95a9e306d0749200bf964ac42af (patch) | |
tree | b0fbe2bb5aa0fec9983746a91d188643ca93466d /euterpe | |
parent | 4a31e5e0f3442a4a5ec9fba94f7bbc2c88312c69 (diff) | |
download | packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.gz packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.bz2 packages-31d147b20c67d95a9e306d0749200bf964ac42af.zip |
Use actual files instead of submodules
Diffstat (limited to 'euterpe')
m--------- | euterpe | 12 | ||||
-rw-r--r-- | euterpe/.SRCINFO | 14 | ||||
-rw-r--r-- | euterpe/PKGBUILD | 34 |
3 files changed, 48 insertions, 12 deletions
diff --git a/euterpe b/euterpe deleted file mode 160000 | |||
Subproject 2826bf89de32ca30f79214b9268298abe23254f | |||
diff --git a/euterpe/.SRCINFO b/euterpe/.SRCINFO new file mode 100644 index 0000000..44c8739 --- /dev/null +++ b/euterpe/.SRCINFO | |||
@@ -0,0 +1,14 @@ | |||
1 | pkgbase = euterpe | ||
2 | pkgdesc = Self-hosted music streaming server with RESTful API and Web interface | ||
3 | pkgver = 1.5.1 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/ironsmile/euterpe | ||
6 | arch = x86_64 | ||
7 | license = GPL | ||
8 | makedepends = go | ||
9 | depends = taglib | ||
10 | depends = icu | ||
11 | source = euterpe-1.5.1.tar.gz::https://github.com/ironsmile/euterpe/archive/v1.5.1.tar.gz | ||
12 | sha256sums = f3b1ef13b2b64d40255a01ff954c409a1b8c22df7f75a1634185ac79219edb04 | ||
13 | |||
14 | pkgname = euterpe | ||
diff --git a/euterpe/PKGBUILD b/euterpe/PKGBUILD new file mode 100644 index 0000000..024a7a2 --- /dev/null +++ b/euterpe/PKGBUILD | |||
@@ -0,0 +1,34 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | |||
3 | pkgname=euterpe | ||
4 | pkgver=1.5.1 | ||
5 | pkgrel=1 | ||
6 | pkgdesc='Self-hosted music streaming server with RESTful API and Web interface' | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/ironsmile/$pkgname" | ||
9 | license=('GPL') | ||
10 | depends=('taglib' 'icu') | ||
11 | makedepends=('go') | ||
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | ||
13 | sha256sums=('f3b1ef13b2b64d40255a01ff954c409a1b8c22df7f75a1634185ac79219edb04') | ||
14 | |||
15 | prepare(){ | ||
16 | cd "$pkgname-$pkgver" | ||
17 | mkdir -p build/ | ||
18 | } | ||
19 | |||
20 | build() { | ||
21 | cd "$pkgname-$pkgver" | ||
22 | export CGO_CPPFLAGS="${CPPFLAGS}" | ||
23 | export CGO_CFLAGS="${CFLAGS}" | ||
24 | export CGO_CXXFLAGS="${CXXFLAGS}" | ||
25 | export CGO_LDFLAGS="${LDFLAGS}" | ||
26 | export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" | ||
27 | |||
28 | go build -o build | ||
29 | } | ||
30 | |||
31 | package() { | ||
32 | cd "$pkgname-$pkgver" | ||
33 | install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname | ||
34 | } | ||