diff options
author | Matthieu Rakotojaona | 2015-06-01 19:38:56 +0200 |
---|---|---|
committer | Matthieu Rakotojaona | 2015-06-01 19:38:56 +0200 |
commit | c4f53e2628ab39ed85325ef19f66e8fd1a270706 (patch) | |
tree | 367a47676444ea9a022b20332efeaa6f9c672aeb | |
download | aur-c4f53e2628ab39ed85325ef19f66e8fd1a270706.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | paclan.install | 22 |
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0a93725c4dd4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = paclan + pkgdesc = Share pacman packages on the LAN. A replacement for pacserve + pkgver = 0.1.2 + pkgrel = 1 + url = https://github.com/rakoo/paclan + install = paclan.install + arch = i686 + arch = x86_64 + license = CC0 + makedepends = go + source = https://github.com/rakoo/paclan/archive/v0.1.2.zip + sha256sums = 29efca936520d4e8458ffbc758cdbb7992e944a7a7dbcfccce54c13229a8c997 + +pkgname = paclan + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..40b35d6b7103 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Matthieu Rakotojaona <matthieu.rakotojaona@gmail.com> + +pkgname=paclan +pkgver=0.1.2 +pkgrel=1 +epoch= +pkgdesc='Share pacman packages on the LAN. A replacement for pacserve' +arch=('i686' 'x86_64') +url='https://github.com/rakoo/paclan' +license=('CC0') +groups=() +makedepends=('go') +source=("https://github.com/rakoo/paclan/archive/v${pkgver}.zip") +sha256sums=(29efca936520d4e8458ffbc758cdbb7992e944a7a7dbcfccce54c13229a8c997) +install=paclan.install + +build() { + cd "$srcdir/$pkgname-$pkgver" + go build -o paclan +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # systemctl service file + install -D -m644 'paclan.service' "$pkgdir/usr/lib/systemd/system/paclan.service" + + # paclan binary + install -D -m755 'paclan' "$pkgdir/usr/bin/$pkgname" + + # paclan.conf + install -D -m644 'paclan.conf' "$pkgdir/etc/pacman.d/paclan.conf" + + # license + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/paclan.install b/paclan.install new file mode 100644 index 000000000000..874952db4c2b --- /dev/null +++ b/paclan.install @@ -0,0 +1,22 @@ +post_install() +{ + systemctl enable paclan.service + systemctl start paclan.service + + echo "Don't forget to edit /etc/pacman.conf and include + Include = /etc/pacman.d/paclan.conf +to each repo where you would like to see paclan being used (that would be at least [core], [extra] and [community])" +} + +pre_remove() +{ + systemctl stop paclan.service + systemctl disable paclan.service +} + +post_remove() +{ + echo "Don't forget to remove the additional Include lines from /etc/pacman.conf. They should look like: + Include = /etc/pacman.d/paclan.conf" + systemctl daemon-reload +} |