diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 4 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = mockplus-dt-font-agent-bin pkgdesc = Mockplus DT - Font Agent pkgver = 1.0.2 - pkgrel = 2 + pkgrel = 3 url = https://www.mockplus.cn/dt arch = any license = custom @@ -3,7 +3,7 @@ _pkgname=mockplus-dt-font-agent pkgname=${_pkgname}-bin pkgver=1.0.2 -pkgrel=2 +pkgrel=3 pkgdesc="Mockplus DT - Font Agent" arch=("any") url="https://www.mockplus.cn/dt" @@ -16,15 +16,10 @@ sha512sums=("7223c1594ac223c3232fa2548a56b54d471d580e0b9b723b8a62a0f63f98ca48651 _user=mockplus build(){ - sed -i -e "s|^ExecStart=.*$|ExecStart=/usr/bin/DTFontAgent \&|; - /^\[Service\]$/a User=$_user" \ - DTFontAgent.service - - echo "u $_user - \"Mockplus Service\" - -" > "$_user.conf" + sed -i 's|/usr/local/bin/|/usr/bin/|' DTFontAgent.service } package() { install -Dm755 DTFontAgent -t "$pkgdir/usr/bin/" - install -Dm644 DTFontAgent.service -t "$pkgdir/usr/lib/systemd/system/" - install -Dm644 $_user.conf -t "$pkgdir/usr/lib/sysusers.d/" + install -Dm644 DTFontAgent.service -t "$pkgdir/usr/lib/systemd/user/" } |