Skip to content

Commit

Permalink
ArchLinux packaging sources
Browse files Browse the repository at this point in the history
  • Loading branch information
apathism committed Aug 21, 2018
1 parent c9b4a6c commit ef4cb29
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dist/**
*.ps
*.sandbox.config
.cabal-sandbox/**
Expand Down
30 changes: 30 additions & 0 deletions dist/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: Ivan Koryabkin <[email protected]>

_pkgname=ejstand
pkgname="${_pkgname}-static"
pkgver=0.1.0
pkgrel=1
pkgdesc='Ejudge Configurable Web Standings Daemon for Multiple Contests'
url="https://apathism.net/git/apathism/${_pkgname}"
arch=('x86_64')
license=('AGPL3')
makedepends=('stack')
source=("${_pkgname}-${pkgver}.zip"::"https://apathism.net/git/apathism/${_pkgname}/archive/${pkgver}.zip")
sha256sums=('a1c9043365bbd660275da3ba6e2447d22ea257dea3b56a56131be9fcdaf3c1d0')

build() {
cd "${srcdir}/${_pkgname}"
mkdir -p "build/bin"
stack --local-bin-path "build/bin" install -- ${_pkgname}
}

package() {
cd "${srcdir}/${_pkgname}"

mkdir -p "${pkgdir}/etc/${_pkgname}/{cfg,examples}"

install -Dm755 "build/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "conf/global.cfg.example" "${pkgdir}/etc/${_pkgname}.cfg"
install -Dm644 "conf/local.cfg.example" "${pkgdir}/etc/examples/standing.cfg.example"
install -Dm644 "dist/archlinux/${_pkgname}.service" "${pkgdir}/etc/systemd/system/${_pkgname}.service"
}
9 changes: 9 additions & 0 deletions dist/archlinux/ejstand.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Ejudge Configurable Web Standings Daemon for Multiple Contests

[Service]
Type=simple
ExecStart=/usr/bin/ejstand

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion src/EjStand.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ where
import Data.String (IsString)

getVersion :: IsString a => a
getVersion = "0.9.0"
getVersion = "0.1.1"

0 comments on commit ef4cb29

Please sign in to comment.