Compare commits

..

No commits in common. "senpai" and "develop" have entirely different histories.

4 changed files with 13 additions and 17 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
/target /target
/pkg/
/src/pumopm-git/
/src/pumopm/

View File

@ -1,7 +1,7 @@
# Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com> # Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
pkgname=pumopm-git pkgname=pumopm
pkgver=0.1.1.r1.g4fd33bf pkgver=0.1.1
pkgrel=1 pkgrel=3
pkgdesc="A tiny power manager written in Rust" pkgdesc="A tiny power manager written in Rust"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://labs.phundrak.com/phundrak/pumopm" url="https://labs.phundrak.com/phundrak/pumopm"
@ -9,16 +9,8 @@ license=('GPL3')
depends=() depends=()
makedepends=('rustup' 'git') makedepends=('rustup' 'git')
options=('strip' 'zipman') options=('strip' 'zipman')
source=("$pkgname::git+https://labs.phundrak.com/phundrak/pumopm.git") source=("$pkgname::https://labs.phundrak.com/phundrak/pumopm/archive/$pkgver.tar.gz")
md5sums=('SKIP') md5sums=('347a95efacdbf9f8ab3b2da6a7eff6cc')
# If Phundraks Gitea takes too long to answer, or if it is down, use the
# Github mirror
# source=("$pkgname}::git+https://github.com/Phundrak/pumopm.git")
pkgver() {
cd "$pkgname"
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() { build() {
cd "$pkgname" cd "$pkgname"
@ -33,9 +25,13 @@ build() {
package() { package() {
cd "$pkgname" cd "$pkgname"
echo EXE
install -Dm755 "target/release/pumopm" "$pkgdir/usr/bin/pumopm" install -Dm755 "target/release/pumopm" "$pkgdir/usr/bin/pumopm"
echo LICENSE
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
echo MAN
install -Dm644 "pumopm.1" "$pkgdir/usr/share/man/man1/pumopm.1" install -Dm644 "pumopm.1" "$pkgdir/usr/share/man/man1/pumopm.1"
echo SERVCE
install -Dm644 "pumopm.service" "$pkgdir/usr/lib/systemd/system/pumopm.service" install -Dm644 "pumopm.service" "$pkgdir/usr/lib/systemd/system/pumopm.service"
} }

3
arch-pkg/.gitignore vendored
View File

@ -1,3 +0,0 @@
*
.gitignore
!PKGBUILD

View File

@ -3,7 +3,7 @@ Description=A small, simple, no bloat power manager.
[Service] [Service]
Type=notify Type=notify
ExecStart=/usr/bin/pumopm ExecStart=/usr/bin/pumo
Restart=on-failure Restart=on-failure
# Disalow writing to /usr, /bin, /usr/bin... It shouldnt, but just in case # Disalow writing to /usr, /bin, /usr/bin... It shouldnt, but just in case