summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2017-09-25 00:25:17 +0200
committerhaawda2017-09-25 00:25:17 +0200
commitd31a535ef20ad0a9d5579d4727aaa2ed30d5cdae (patch)
tree6287742e2ca13c0df8e7d7882f31775e914907ef
parent42aa896b3598ebc85bac19b964f1a2aec14091c3 (diff)
downloadaur-d31a535ef20ad0a9d5579d4727aaa2ed30d5cdae.tar.gz
Adopt, split PKBUILD
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD43
2 files changed, 53 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 526867e60b0..89e15b93f5f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,27 @@
pkgbase = thue
pkgdesc = Thue programming language
- pkgver = 1.5_2012.0916
+ pkgver = 1.5_2015.0827
pkgrel = 1
url = http://catseye.tc/node/Thue.html
- arch = any
+ arch = x86_64
license = custom:PD
- depends = python
- source = http://catseye.tc/distfiles/thue-1.5-2012.0916.zip
- sha256sums = 28834a581bbf75822f965e97ff2717c7de705252fb4cebc306f4a1789fdfebc5
+ source = http://catseye.tc/distfiles/thue-1.5-2015.0827.zip
+ md5sums = 8c987bfe06d3aa255fc2694e82f9faf1
pkgname = thue
+ arch = x86_64
+ depends = thue.doc
+
+pkgname = thue.py
+ arch = any
+ depends = thue.doc
+ depends = python
+
+pkgname = thue.rb
+ arch = any
+ depends = thue.doc
+ depends = ruby
+
+pkgname = thue.doc
+ arch = any
diff --git a/PKGBUILD b/PKGBUILD
index abe21d3ab38..fccf9eac76b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,52 @@
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
-pkgname=thue
-pkgver=1.5_2012.0916
+pkgbase=thue
+pkgname=('thue' 'thue.py' 'thue.rb' 'thue.doc')
+arch=('x86_64')
+pkgver=1.5_2015.0827
pkgrel=1
pkgdesc='Thue programming language'
-arch=('any')
url='http://catseye.tc/node/Thue.html'
license=('custom:PD')
-depends=('python')
source=("http://catseye.tc/distfiles/$pkgname-${pkgver/_/-}.zip")
-sha256sums=('28834a581bbf75822f965e97ff2717c7de705252fb4cebc306f4a1789fdfebc5')
+md5sums=('8c987bfe06d3aa255fc2694e82f9faf1')
prepare() {
2to3 -w -n "$pkgname-${pkgver/_/-}/src/thue.py" >/dev/null 2>&1
}
-package() {
- cd "$pkgname-${pkgver/_/-}"
- install -Dm755 src/thue.py "$pkgdir/usr/bin/thue"
+build() {
+ cd "$pkgbase-${pkgver/_/-}/src"
+ gcc thue.c -o thue
+}
+
+package_thue.doc() {
+ arch=('any')
+ cd "${pkgname%.doc}-${pkgver/_/-}"
install -Dm644 doc/license.txt "$pkgdir/usr/share/licenses/thue/LICENSE"
install -Dm644 doc/thue.txt "$pkgdir/usr/share/doc/thue/REFERENCE"
install -Dm644 README.markdown "$pkgdir/usr/share/doc/thue/README.md"
cp -r eg "$pkgdir/usr/share/doc/thue/examples"
}
-# vim:set ts=2 sw=2 et:
+package_thue() {
+ depends=('thue.doc')
+ arch=('x86_64')
+ cd "$pkgname-${pkgver/_/-}"/src
+ install -Dm755 thue "$pkgdir/usr/bin/thue"
+}
+
+package_thue.py() {
+ depends=('thue.doc' 'python')
+ arch=('any')
+ cd "${pkgname%.py}-${pkgver/_/-}"
+ install -Dm755 src/thue.py "$pkgdir/usr/bin/thue.py"
+}
+
+package_thue.rb() {
+ depends=('thue.doc' 'ruby')
+ arch=('any')
+ cd "${pkgname%.rb}-${pkgver/_/-}"
+ install -Dm755 src/thue.rb "$pkgdir/usr/bin/thue.rb"
+}
+