diff options
author | Yigit Sever | 2023-04-06 16:14:55 +0300 |
---|---|---|
committer | Yigit Sever | 2023-04-06 16:14:55 +0300 |
commit | cf79f2c70d17e19f35d65023ce12dfe3ffb6f21b (patch) | |
tree | 5587722c60de81f663c24f1fd676f6bf2a4cd5d4 /euterpe | |
parent | 7b703b6e88d330d9a1ad44848d0421be80b98f71 (diff) | |
parent | 3d91595a0553a2212fc70f55874507db5f8279e0 (diff) | |
download | packages-cf79f2c70d17e19f35d65023ce12dfe3ffb6f21b.tar.gz packages-cf79f2c70d17e19f35d65023ce12dfe3ffb6f21b.tar.bz2 packages-cf79f2c70d17e19f35d65023ce12dfe3ffb6f21b.zip |
Add 'euterpe/' from commit '3d91595a0553a2212fc70f55874507db5f8279e0'
git-subtree-dir: euterpe
git-subtree-mainline: 7b703b6e88d330d9a1ad44848d0421be80b98f71
git-subtree-split: 3d91595a0553a2212fc70f55874507db5f8279e0
Diffstat (limited to 'euterpe')
-rw-r--r-- | euterpe/.SRCINFO | 14 | ||||
-rw-r--r-- | euterpe/PKGBUILD | 34 |
2 files changed, 48 insertions, 0 deletions
diff --git a/euterpe/.SRCINFO b/euterpe/.SRCINFO new file mode 100644 index 0000000..948a4b0 --- /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.4 | ||
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.4.tar.gz::https://github.com/ironsmile/euterpe/archive/v1.5.4.tar.gz | ||
12 | sha256sums = 941b7a5f99460cea23beb024bcc2e7315fe4a79563f8c750dcdf733465487eff | ||
13 | |||
14 | pkgname = euterpe | ||
diff --git a/euterpe/PKGBUILD b/euterpe/PKGBUILD new file mode 100644 index 0000000..774e649 --- /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.4 | ||
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=('941b7a5f99460cea23beb024bcc2e7315fe4a79563f8c750dcdf733465487eff') | ||
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 | } | ||